Author neologix
Recipients christian.heimes, hynek, jcea, neologix, pitrou, tarek, vstinner
Date 2013-08-16.16:56:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAH_1eM0N1FEgapmiszxTUsHB-0AVz2TMu=Ryfv68zbc9Lbc45w@mail.gmail.com>
In-reply-to <1376671703.2510.3.camel@fsol>
Content
>> Why locking? /dev/urandom is a pseudo char device. You can have multiple
>> readers on the same fd without any locking.
>
> You must put a lock around the open() call, though, to avoid calling it
> several times and losing an fd.

Exactly (unless the FD is open during the module initialization,
instead of using lazy-open upon first os.urandom() call).
History
Date User Action Args
2013-08-16 16:56:54neologixsetrecipients: + neologix, jcea, pitrou, vstinner, christian.heimes, tarek, hynek
2013-08-16 16:56:54neologixlinkissue18756 messages
2013-08-16 16:56:54neologixcreate