[issue29120] Move hash randomisation initialisation out of Python/random.c
Serhiy Storchaka
report at bugs.python.org
Sat Dec 31 08:09:25 EST 2016
Serhiy Storchaka added the comment:
Actually _PyRandom_Fini() has a relation to _PyOS_URandom APIs. It releases resources acquired by _PyOS_URandom APIs. It shouldn't be renamed to _Py_HashRandomization_Fini.
_PyRandom_Init() just initializes _Py_HashSecret. But it can't be implemented via _PyOS_URandom APIs. It uses a static function from this file. If move it to other place, we should add new _PyOS_URandom API function. I don't think this would make the code cleaner.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29120>
_______________________________________
More information about the Python-bugs-list
mailing list