Expand description
§Random number generation utilities
Random bytes come from the operating system through
getrandom, which does not need std. On
targets without a supported system source, such as bare-metal
thumbv7em-none-eabihf or aarch64-unknown-none, the application must
provide a
getrandom custom backend.
Functions§
- copy_
randombytes - Provides random data up to length of
datafrom the OS’s random number generator. - randombytes_
buf alloc - Provides random data up to
lenfrom the OS’s random number generator.