Hacker News new | ask | show | jobs
by yid 5445 days ago
I'm very familiar with MT from my PhD research :) It's a nugget of gold hidden in a single .c file.

I asked the question in relation to the LC generators in stdlib, where it seemed like reseeding from the (probably MT? I believe BSD uses Yarrow) generator in /dev/urandom would actually result in more entropy than the internal state of the LC generator in Perl/C stdlib. Totally agree with not reseeding MT though -- I have it in a persistent FastCGI script with an initial seed from /dev/random now.

1 comments

Oh, sorry... if you're asking whether it's possible to hack the "crappy rand()" such that it has more entropy by constantly re-seeding from MT... then I have no idea =) I just use MT itself.