How does Python 2.7.3 hash strings used to seed random number generators? -


This is true in 64-bit Python 2.7.6, although in 32-bit Python 2.7.3 this is incorrect: random. Random (hash ("a") random () == random Random ("a") Random ()

So how does Python 2.7.3 hash strings are used for random number generators?

The reason for 32bit hash

random module seeds () function :

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -