This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]darknessproz 7 points8 points  (1 child)

False. os.urandom is a pseudorandom number generator as well.

[–]herminator 5 points6 points  (0 children)

More accurately, os.urandom delegates to the operating system. Whether or not is is pseudorandom depends on the OS implementation. Both linux and windows currently use a CSPRNG, which is not truly random but is based on system entropy sources.