[issue16496] Simplify and optimize random_seed()

Mark Dickinson report at bugs.python.org
Sun Nov 18 10:14:42 CET 2012


Mark Dickinson added the comment:

Thanks for the updated patch.  A couple more comments:

- you've got potential overflow when computing keysize from bits, on platforms where sizeof(size_t) > sizeof(unsigned long).

- please could you move the check for PY_UINT32_T nearer the top of the file, along with the other #defines.

----------

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


More information about the Python-bugs-list mailing list