3 ms·
If by "predictable" all that's meant is "you can deterministically recreate every output bit generated by the function, forever, using a single value that repre
by bscphil 6y ago
If by "predictable" all that's meant is "you can deterministically recreate every output bit generated by the function, forever, using a single value that represents the starting state of the function", then you can certainly have that and a secure RNG function. Just use ChaCha20's function with the key representing your seed.
- lmm 6y agoThat might be a good default, but where would the seed come from? You also need to make sure that the order in which random bits are read is deterministic, which is a lot harder than it sounds.