[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LJ2 vs. math.random
- From: Shawn Fox <shawnkfox@...>
- Date: Sun, 8 Aug 2010 15:34:02 -0500
I prefer to replace rand() with a custom PRNG as LuaJIT 2.0 does, but I do think that the generator should be seeded using /dev/urandom with a fall back to using time(NULL) if /dev/urandom does not exist.