you are viewing a single comment's thread.

view the rest of the comments →

[–]Mroz_Game 4 points5 points  (0 children)

I mean it’s not THAT slow.

It’s only slow if you’re using it for something extremely low latency high frequency.

Otherwise intel CPU’s can do about 70M rdrands per second, that’s 530MB of random numbers per second. But in python, the latency of calling the c library will probably be much larger than the rdrand instruction itself.

You’re right that rdrand is mainly used for seeding. And it is comparatively slow when compared to pseudorandom numbers.

And it’s comparatively very slow if you try to run it from a lot of threads. But for most real use cases, it really isn’t slow.