CryptographicallySecurePseudoRandomNumberGenerator.getBytes

Returns the specified number of cryptographically-secure pseudo-random bytes, using one of the system APIs.

  1. void[] getBytes(in size_t length)
    class CryptographicallySecurePseudoRandomNumberGenerator
    version(Windows)@system
    void[]
    getBytes
    (
    in size_t length
    )
  2. void[] getBytes(in size_t length)
  3. void[] getBytes(in size_t length)

Throws

  • CSPRNGException if one of the functions from the automatically-select cryptography API could not be loaded.

Meta