This module contains functions for the creation of random numbers and handling of the random number generator.
(Fn [Int] (Array Byte))
creates a buffer containing random numbers.
(Fn [Int, (Ref (Array Byte) a)] (Array Byte))
(buf-deterministic len seed)
creates a buffer containing
indistinguishable from random bytes without knowing
seed. For a given seed,
this function will always output the same sequence. This function is mainly
useful for writing tests.
(Fn  ())
erases part of the RNG state to make recovering previous RNG states impossible.
(Fn  ())
reseeds the RNG; this is important to do after starting new threads.
The number of bytes a seed takes up.
(Fn  Int)
creates an unsigned random number of 32 bit length.
(Fn [Int] Int)
creates a uniform random number from 0 to an upper limit provided as argument.