[issue23025] ssl.RAND_bytes docs should mention os.urandom

2015-01-08 Thread STINNER Victor
STINNER Victor added the comment: To be clear: rand.diff looks good to me, go ahead. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue23025] ssl.RAND_bytes docs should mention os.urandom

2014-12-11 Thread STINNER Victor
STINNER Victor added the comment: Note: ssl.RAND_bytes() doesn't exist in Python 2 (even in Python 2.7.9!). -- versions: +Python 3.4, Python 3.5 ___ Python tracker ___ __

[issue23025] ssl.RAND_bytes docs should mention os.urandom

2014-12-11 Thread STINNER Victor
STINNER Victor added the comment: RAND_bytes() has an annoying bug: it can produces the same byte sequence in two different processes if they get the same identifier (yes, it occurs sometimes). See the issue #18747 and warnings about fork in the ssl module. I don't know if it is now fixed in O

[issue23025] ssl.RAND_bytes docs should mention os.urandom

2014-12-11 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue23025] ssl.RAND_bytes docs should mention os.urandom

2014-12-10 Thread Donald Stufft
Donald Stufft added the comment: I agree completely. This is something that should generally be discouraged all together. See: http://sockpuppet.org/blog/2014/02/25/safely-generate-random-numbers/ -- nosy: +dstufft ___ Python tracker

[issue23025] ssl.RAND_bytes docs should mention os.urandom

2014-12-10 Thread Alex Gaynor
New submission from Alex Gaynor: For almost any conceivable application, os.urandom is a preferable way to access a CSPRNG, and is less error prone, the docs should point this out. -- assignee: docs@python components: Documentation files: rand.diff keywords: patch messages: 232436 nosy: