Message 72050 - Python tracker
Message72050
| Author | ajaksu2 |
|---|---|
| Recipients | ajaksu2 |
| Date | 2008-08-27.23:30:11 |
| SpamBayes Score | 0.47212753 |
| Marked as misclassified | No |
| Message-id | <1219879812.7.0.142620771907.issue3708@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008-08-27 23:30:12 | ajaksu2 | set | recipients: + ajaksu2 |
| 2008-08-27 23:30:12 | ajaksu2 | set | messageid: <1219879812.7.0.142620771907.issue3708@psf.upfronthosting.co.za> |
| 2008-08-27 23:30:11 | ajaksu2 | link | issue3708 messages |
| 2008-08-27 23:30:11 | ajaksu2 | create | |