News for hackers. Stuff that matters.
Re:Making Python Less Random by red_admiral on Friday July 12, 2024 @11:30AM (#40946494)
Maybe I'm missing something, but if you can set os.urandom to a custom function, why not implement your own stateful PRNG in python and patch urandom to point to that? Then you can, among other things, seed the PRNG yourself in unit tests, all from within python and without touching syscalls.

There are no comments on this comment yet.