ddn.crypto.random
Secure random number generation implementation.
alias Random
class SecureRandom
Types 2
aliasRandom = CryptoRandom
classSecureRandom : CryptoRandom
Implementation of a cryptographically secure random number generator.
Uses the operating system's CSPRNG:
- POSIX:
/dev/urandom, read through a raw file descriptorwith no userspace buffering, so entropy is never retained in a library buffer and
fork()cannot duplicate it - Windows:
BCryptGenRandomwith the system-preferred RNG