Live data from Hacker News

PCG, A Family of Better Random Number Generators

pcg-random.org

1–10 of 57 posts

Re: PCG, A Family of Better Random Number Generators

#6
Unless it's secure, I see no motivation to use it.

In their table, they acknowledge that Arc4Random and ChaCha20 as secure. The only negatives against ChaCha20 is that it's not 'fast enough' and k-Dimensional Equidistribution. In my experience it's never showed up in my profiling, so I feel it's fast enough; and I'm not sure why I want k-Dimensional Equidistribution.

So... I'll keeping using ChaCha20 when I need to (it's part of nacl/libsodium if you don't know where to get it from).

Re: PCG, A Family of Better Random Number Generators

#9

Unless it's secure, I see no motivation to use it. In their table, they acknowledge that Arc4Random and ChaCha20 as secure. The only negatives against ChaCha20 is that it's not 'fast enough' and k-Dimensional Equidistribution. In my experience it's never showed up in my profiling, so I feel it's fast enough; and I'm not sure why I want k-Dimensional Equidistribution. So... I'll keeping using ChaCha20 when I need to (…

I wrote a standalone C++11 (compatible with the standard RNG library) implementation of ChaCha (with the number of rounds as a parameter), available here: https://gist.github.com/orlp/32f5d1b631ab092608b1

This is also the implementation used for the benchmark at the pcg-random.org homepage.

Re: PCG, A Family of Better Random Number Generators

#10

Unless it's secure, I see no motivation to use it. In their table, they acknowledge that Arc4Random and ChaCha20 as secure. The only negatives against ChaCha20 is that it's not 'fast enough' and k-Dimensional Equidistribution. In my experience it's never showed up in my profiling, so I feel it's fast enough; and I'm not sure why I want k-Dimensional Equidistribution. So... I'll keeping using ChaCha20 when I need to (…

I wrote a standalone C++11 (compatible with the standard RNG library) implementation of ChaCha (with the number of rounds as a parameter), available here: https://gist.github.com/orlp/32f5d1b631ab092608b1 This is also the implementation used for the benchmark at the pcg-random.org homepage.

How does it compare to the libsodium implementation: https://github.com/jedisct1/libsodium/blob/master/src/libsod...

Btw, libsodium prefers salsa20 instead of chacha20, I don't know why; but I trust they made a good decision.

Post reply on HN