RDSEED / RDRAND
Simple interface to rdseed / rdrand instructions.
API
get64, 32, 16 - nonblocking variants returning an Option.fill_bytes- fills byte slice with random values. blocking function.blockingwrapper returning random number when ready and panicking if operation is not supported by hardware.is_availablefunction for query if hardware supports random operations.randmodule for strong pseudo random RDRAND operations. These operations will less likely to block. Useful for generating lot of random numbers quickly.- Crate defaults to true random RDSEED operations.
License
This is free and unencumbered software released into the public domain.
This code can be used under terms of CC0 or the Unlicense.
![]()