chickadee » chicken » random » random-bytes

random-bytes #!optional BUF SIZEprocedure

Returns random bytes from the available entropy source. If BUF is given, it should be a string or byte vector which will be filled with up to SIZE random bytes. SIZE defaults to the size of the BUF argument. If no arguments are given, random-bytes returns a freshly allocated byte vector of sufficient size to be used as a seed for set-pseudo-random-seed!.