[issue29120] Move hash randomisation initialisation out of Python/random.c

Nick Coghlan report at bugs.python.org
Sat Dec 31 19:12:32 EST 2016


Nick Coghlan added the comment:

On 1 Jan 2017 05:00, "Raymond Hettinger" <report at bugs.python.org> wrote:

It would be nice if Python/random.c were renamed to something else that
indicated its relation to urandom and to hash secrets.

Right, based on Victor & Serhiy's feedback, the split I would now propose
 is:

- Include/pyurandom.h and Python/pyurandom.c for the OS urandom APIs (with
related init/fini functions)
- Python/hash_randomization.c for the hash seeding functions  (while this
process *uses* pyurandom, it isn't part of *providing* that interface)

----------

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


More information about the Python-bugs-list mailing list