According to the documentation for random.seed :
If x is omitted or No , the current system time is used; The current system time is also used to initialize the generator when the module is first imported. If sources of randomness are provided by the operating system, they are used instead of system time (see the os.urandom() Function for more information on availability).
If you donβt pass something to the seed, it will try to use random information sources provided by the operating system, rather than time, which is always better. This saves you a bit of work and is about as good as it will be. Regarding accessibility, the docs for os.urandom tell us:
On a UNIX-like system, this will request / dev / urandom, while on Windows it will use CryptGenRandom.
Cross-platform random seeds are a big win here; you can safely omit the seed and hope that it will be random enough on almost every platform on which you will use Python. Even if Python returns to a point in time, perhaps only a millisecond window (or less) to guess the seed. I do not think that in any case you will encounter any problem using the current time - even then it will be only a reserve.
source share