logoalt Hacker News

blaaarg123 • today at 8:03 PM • 2 replies • view on HN

> prefer a stateless RNG that works by encrypting or hashing a counter.

isn't that the definition of stateful?


Replies

fc417fc802 • today at 8:35 PM

From the perspective of the overall process, yes there is still state. However what is typically meant by a stateful RNG is a function which you first seed that has to persist data between calls (and usually generates a sequential stream).

➕ show 1 reply
cowlevel • today at 8:19 PM

Not really, you can skip the counter forward.

➕ show 1 reply