New submission from Daniel Diniz <[EMAIL PROTECTED]>: Calling os.urandom(1 + float(x)) ends in a infinite loop due to a naive condition check:
while len(bytes) < n: bytes += read(_urandomfd, n - len(bytes)) Trivial patch attached. ---------- components: Library (Lib) files: urandom.diff keywords: patch messages: 72050 nosy: ajaksu2 severity: normal status: open title: os.urandom(1.1): infinite loop type: behavior versions: Python 2.6 Added file: http://bugs.python.org/file11277/urandom.diff _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3708> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com