IdentityPython / pyFF

SAML metadata aggregator
https://pyff.io/
Other
50 stars 37 forks source link

Fix type of seed to the random number generator #241

Closed c00kiemon5ter closed 1 year ago

c00kiemon5ter commented 1 year ago

Since Python 3.11 the seed given to the random.seed() function must be one of the following types: NoneType, int, float, str, bytes, or bytearray.

Reference: https://docs.python.org/3.11/library/random.html#random.seed

When using self as the seed, the random part is the memory address of the object, which is equivalent to its identity. Using the identity (an int) should have the same effect in terms of entropy.

All Submissions: