Serhiy Storchaka added the comment:

Patch updated to conform with Mark's nitpicks.

What I really doubt is that now same integer seed on little-endian and 
big-endian give different random sequences. Is this important? If yes, I can 
add bytes-swapping. On other hand, non-integer seed already give 
platform-depending results (the hashing used).

What you think about using a buffer instead a hash for bytes and bytearrays 
(and all other seeds supported buffer protocol)? It can increase entropy. Of 
course, it should be another issue if you approve it.

----------
Added file: http://bugs.python.org/file28019/random_seed_2.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16496>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to