Christian Heimes added the comment: Am 16.08.2013 18:24, schrieb Charles-François Natali: > Well, first we'll have to make the code thread-safe, if we want to > keep a persistent FD open. Which means we'll have to add a lock, which > is likely to reduce concurrency, and overall throughput.
Why locking? /dev/urandom is a pseudo char device. You can have multiple readers on the same fd without any locking. Did you know that Java keeps one persistent fd to /dev/urandom? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18756> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com