random/buf random/buf-deterministic random/ratchet random/reseed random/seed-bytes random/u32 random/uniform
(random/buf buf &opt size)
Fill a buffer with random bytes. If size is not provided, will clear and fill the given buffer. If size is provided, will append size random bytes to the buffer. Alternatively, you can provide just the size argument, and a new randomized buffer will be returned.
(random/buf-deterministic buf len seed)
Generate len random bytes and push them into a buffer buf. seed is a byte sequence of at least 32 bytes that initializes the state of the RNG. Returns the modified buffer.
32
Number of bytes in a seed for the RNG.