randomBytes

numBytes must be a multiple of 4, or this will throw an Exception

  1. ubyte[] randomBytes(size_t numBytes)
  2. ubyte[] randomBytes(size_t numBytes, ref Rand rand)
    ubyte[]
    randomBytes
    (
    Rand = DefaultCryptoRand
    )
    (
    size_t numBytes
    ,
    ref Rand rand
    )
    if (
    isDAuthRandom!Rand
    )
    out (result) { assert (result.length == numBytes); }

Meta