[issue16496] Simplify and optimize random_seed()

Serhiy Storchaka report at bugs.python.org
Sun Nov 18 17:49:03 CET 2012


Serhiy Storchaka added the comment:

The code is larger.  There is one additional allocation.  CPU tacts wasted for uint32->ulong conversion (and in any case all numbers in the generator are 32-bit).  One additional ValeError/OverflowError.  Apparently my feeling of comfort is different from your own. ;)

Hmm, reviewing your code I found errors in my code too.  I guess I'm more captious as a critic than as an author.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16496>
_______________________________________


More information about the Python-bugs-list mailing list