99 $bytes = floor( $bytes );
100 return random_bytes( $bytes );
generate( $bytes)
Generate a run of cryptographically random data and return it in raw binary form.
wasStrong()
Return a boolean indicating whether or not the source used for cryptographic random bytes generation ...
driftHash( $data)
Randomly hash data while mixing in clock drift data for randomness.
randomState()
Return a rolling random state initially build using data from unstable sources.
generateHex( $chars)
Generate a run of cryptographically random data and return it in hexadecimal string format.
initialRandomState()
Initialize an initial random state based off of whatever we can find.
static generateHex( $chars)
Generate a run of cryptographically random data and return it in hexadecimal string format.