dauth ~master (2017-02-26T22:59:32Z)
Home
Dub
Repo
randomBytes
dauth
random
numBytes must be a multiple of 4, or this will throw an Exception
ubyte
[]
randomBytes
(
size_t
numBytes
)
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
Source
See Implementation
dauth
random
functions
randomBytes
randomPassword
randomSalt
randomToken
manifest constants
defaultPasswordChars
defaultPasswordLength
defaultSaltLength
defaultTokenStrength
numBytes must be a multiple of 4, or this will throw an Exception