Message263236
| Author |
vstinner |
| Recipients |
mryan1539, rhettinger, vstinner |
| Date |
2016年04月12日.08:15:47 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1460448947.52.0.566628347647.issue26735@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> I've attached a possible patch for this issue, against the 3.5.1 source
tree.
I guess that you are already using Python 3.5.1 which uses getrandom(). You should try to confirm using strace.
I updated your patch. I replaced "#if defined(__sun__)" with "#ifdef sun", since "#ifdef sun" looks more common in the Python code base, and I never saw "#if defined(__sun__)" in the Python code base.
I also avoided the new len variable, I reused the n variable.
I don't have Solaris, so I cannot test. I didn't find getrandom() manual page neither, I only found this blog post which doesn't mention the 1024 bytes limitation on Solaris:
https://blogs.oracle.com/darren/entry/solaris_new_system_calls_getentropy |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年04月12日 08:15:47 | vstinner | set | recipients:
+ vstinner, rhettinger, mryan1539 |
| 2016年04月12日 08:15:47 | vstinner | set | messageid: <1460448947.52.0.566628347647.issue26735@psf.upfronthosting.co.za> |
| 2016年04月12日 08:15:47 | vstinner | link | issue26735 messages |
| 2016年04月12日 08:15:47 | vstinner | create |
|