News for hackers. Stuff that matters.
Re:Making Python Less Random by k_sze on Friday July 12, 2024 @02:23AM (#40943113)
Just me or the solution will work on anything that depends on the SYS_getrandom syscall?
Re:Making Python Less Random by healeycodes on Friday July 12, 2024 @05:08AM (#40943924)
Yes, it works on any process that makes a SYS_getrandom call.
Re:Making Python Less Random by amnqrt on Friday July 12, 2024 @05:25AM (#40943992)
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.