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 <rep...@bugs.python.org>
<http://bugs.python.org/issue29120>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to