# RDSEED / RDRAND
[](https://crates.io/crates/rdseed)
[](https://unlicense.org)
[](https://blog.rust-lang.org/2021/10/21/Rust-1.56.0.html)
[](https://deps.rs/repo/gitlab/hsn10/rdseed)
[](https://docs.rs/rdseed)
[](https://crates.io/crates/rdseed/versions)
Simple interface to rdseed / rdrand instructions.
## API
1. `get64`, 32, 16 - nonblocking variants returning random number as an Option.
1. `fill_bytes` - fills byte slice with random values. blocking function.
1. `blocking` - wrapper returning random number when ready and
panicking if operation is not supported by hardware.
1. `is_available` - query if hardware supports random operations.
1. `rand` module - strong pseudo random RDRAND operations. These operations
will less likely to block. Useful for generating lot of random numbers quickly.
1. Crate defaults to true random RDSEED operations.
## Portability
x64 CPU with RDSEED / RDRAND instructions.
## License
This is free and unencumbered software released into the public domain.
This code can be used under terms of [CC0](https://creativecommons.org/publicdomain/zero/1.0/) or
the [Unlicense](https://unlicense.org).
