[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luuid vs. forks
- From: Alexander Gladysh <agladysh@...>
- Date: Tue, 9 Feb 2010 00:24:56 +0300
>> This looks wrong to me. Also it (indirectly) breaks my tests. So I want to
>> ask — is this normal, or my setup is broken?
> Your setup is broken, or more likely, the underlying random number
> generator. fork() makes creating a good one really tricky on UNIX.
> RAND_bytes() from OpenSSL allegedly gets this right, or you can open
> /dev/urandom directly---but you have to make sure you've disabled
> buffered I/O in that case.
Thanks.
I'd like to avoid writing my own libuuid for OS X though...
I figured out that in my setup I'm using Apple's builtin libuuid (that
is why generated UUID are in all-caps for instance).
Have anyone else used luuid Lua module on OS X? How did you built it?
Alexander.