[issue12858] crypt.mksalt: use ssl.RAND_pseudo_bytes() if available

2013-01-02 Thread STINNER Victor
STINNER Victor added the comment: I'm not sure that a salt must be cryptographic. Mersenne Twister should be enough to generate a salt. Anyway, ssl.RAND_pseudo_bytes() cannot be used currently and I don't have a patch, so I prefer to close this issue. -- resolution: -> rejected statu

[issue12858] crypt.mksalt: use ssl.RAND_pseudo_bytes() if available

2011-08-30 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +jafo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue12858] crypt.mksalt: use ssl.RAND_pseudo_bytes() if available

2011-08-30 Thread STINNER Victor
New submission from STINNER Victor : 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 =>