Skip to main content

Module random

Module random 

Source
Expand description

Random bytes, for SCRAM nonces.

Reads the operating system’s entropy source directly rather than adding a dependency. A nonce only needs to be unpredictable and unique per exchange.

Functions§

bytes
Fill a buffer with random bytes from the OS.
nonce
A printable nonce, using the characters SCRAM allows (no comma).