Hacker News new | ask | show | jobs
by k_sze 702 days ago
Just me or the solution will work on anything that depends on the SYS_getrandom syscall?
2 comments

Yes, the solution has nothing to do with Python.

I'm not sure if the problem had anything to do with Python. The article is a bit silent on the specific issue with randomness. If detouring urandom() fixed it, it was probably the randomized hash tables.

It cannot have been third party modules calling random.seed() since that would not have been fixed by the hack (meant positively).

You can say that randomized hash tables by default are a mistake, same as the crippled arbitrary precision arithmetic.

If you write a web service, just set the proper defaults at the start of your program.

Yes, it works on any process that makes a SYS_getrandom call.