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.
[ Parent
| on HN ]
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...