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: So how does Python 2.7.3 hash strings are used for random number generators? The reason for 32bit random module seeds () function : signature bit cut and stomach give different results Example: random. Random (hash ("a") random () == random Random ("a") Random ()
hash
PyNumber_Absolute () for long
abs (-10) = 10
((unsigned long) -10 ) = 4294967286
Comments
Post a Comment