chickadee » tweetnacl » open-random-stream

(open-random-stream k n #!optional [limit (expt 2 30)])procedure

Open a stream of pseudo-random bytes using the shared key k and nonce n for algorithm randomization. The stream ends after limit bytes, unless limit is #f or infinity.