[New-bugs-announce] [issue12858] crypt.mksalt: use ssl.RAND_pseudo_bytes() if available

STINNER Victor report at bugs.python.org
Tue Aug 30 16:41:18 CEST 2011


New submission from STINNER Victor <victor.stinner at haypocalc.com>:

A salt doesn't need to be strong random bits, but I'm not sure that Mersenne Twister is a best candidate to generate salt. It would be nice to use ssl.RAND_pseudo_bytes() if available.

Problem: implement random.choice() from a generator generating bytes => see issue #12754.

----------
components: Extension Modules
messages: 143215
nosy: haypo
priority: normal
severity: normal
status: open
title: crypt.mksalt: use ssl.RAND_pseudo_bytes() if available
versions: Python 3.3

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


More information about the New-bugs-announce mailing list