This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients martin.panter, vstinner
Date 2016-06-09.08:16:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
According to <>, getrandom() returns no more than 32 MiB as an int on Linux. Doesn’t that mean you can rely on syscall()’s long return value fitting in an int? Maybe just cast n = (int)sycall(...) to be explicit.

But it does make sense to cap n to LONG_MAX just in case there is some strange platform where it matters :)
Date User Action Args
2016-06-09 08:16:25martin.pantersetrecipients: + martin.panter, vstinner
2016-06-09 08:16:25martin.pantersetmessageid: <>
2016-06-09 08:16:25martin.panterlinkissue27278 messages
2016-06-09 08:16:25martin.pantercreate