DPBayes / jax-chacha-prng

A cryptographically-secure pseudo-random number generator for JAX based on the 20 round ChaCha cipher.
12 stars 1 forks source link

Random module: Allow iterative splitting of IV #11

Open lumip opened 2 years ago

lumip commented 2 years ago

The current new implementation of random.split allows only 96 sequential splits. Reserve a part of the IV bits to be used in iterative increments (using a new random.next function).