News for hackers. Stuff that matters.
Re:Show HN: Shishua – Fast pseudo-random generator by jedisct1 on Saturday April 18, 2020 @05:19PM (#22911180)
If you need something fast and with stronger security guarantees, Google Randen remains a solid choice. https://github.com/google/randen
Re:Show HN: Shishua – Fast pseudo-random generator by lern_too_spel on Saturday April 18, 2020 @09:36PM (#22912726)
The article mentions Randen is slower than ChaCha8.
Re:Show HN: Shishua – Fast pseudo-random generator by grantwu on Sunday April 19, 2020 @01:37AM (#22913802)
Where? CTRL-F Randen doesn't show anything, and the Randen repo claims it's faster than ChaCha8.
Re:Show HN: Shishua – Fast pseudo-random generator by espadrine on Sunday April 19, 2020 @02:30AM (#22913998)
It is not directly in the article, but in a link to a tweet by djb, the creator of ChaCha8. He believes that the cpb listed in the Randen comparison is off:

https://twitter.com/hashbreaker/status/1023965175219728386

He mentions that perhaps the implementation of ChaCha8 for the benchmark is done by hand and unoptimized. And it is true from what I saw that a lot of benchmarks with ChaCha8 are implemented with none of the tweaks that make it fast.

In this instance, it looks like the Randen author didn’t reimplement it from scratch, but they used an SSE implementation, not an AVX2 one, which would have been faster: https://github.com/google/randen/blob/1365a91bafc04ba491ce79...