[issue16496] Simplify and optimize random_seed()

Mark Dickinson report at bugs.python.org
Sun Nov 18 09:32:41 CET 2012


Mark Dickinson added the comment:

Patch looks correct and looks good to me, modulo a couple of nitpicks (see Rietveld comments).  This seems like a nice cleanup.

The patch introduces a new dependence on PY_UINT32_T, which is something we haven't so far used elsewhere in Python beyond the float<->string conversions.  That's quite a big change: it means that it's conceivable that the random module could now fail to build on platforms where it used to work.

It also changes the signature of 'init_by_array', which is one of the core routines taken directly from the MT implementation.

----------

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


More information about the Python-bugs-list mailing list