1. 5

  2. 4
    1. 1

      Man, that’s pretty.

      I know non-crypto PRNGs have their place, and had even more of one back when crypto operations were slower, but I wonder if these days more apps should be defaulting to a PRNG based on a cipher design, like ChaCha20/8 or counter-mode AES where it’s hardware-accelerated. We know those functions really well from cryptographers’ study of them, and they’re pretty fast now, GBs/s not MBs/s.

      It’s sort of like how a lot of environments use keyed hashes even for hashtables, like SipHash and Go’s aeshash. It’s always possible to switch to PCG or something if you need it, but if you don’t, might as well go with something we know is unpredictable.