🐍 Python os.urandom()

In any programming language, the random function's code uses a function similar to os.urandom() in python. I looked at the source code of random libraries in multiple languages, and all use a function that generates random bytes, then using those bytes in some way or the other for random usage. Any random library must use that technique, because there is no other way to hard-code a random generator. os.urandom(numberOfBytes) generates random bytes based on the parameter given. Due to this limitation, I believe there is not way to make a unique random library.

Built With

Share this project:

Updates

Submission history