tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: randomize source port



On Thu, Jul 24, 2008 at 03:29:04AM -0700, Darren Reed wrote:
> If arc4random is too CPU intensive, is it worth using libc's rand and  
> seeding that automatically in the kernel as we do with arc4random?

It would be better to use the Mersenne twister or something like sober
as prng in that case. Both are cryptographhically strong PRNGs and can
be a lot faster than arc4random.

Joerg


Home | Main Index | Thread Index | Old Index