b=327161, uuidgenerator stuff, attempt to fix btek from previous checkin, r=bz

This commit is contained in:
vladimir%pobox.com 2006-08-14 22:04:01 +00:00
parent cd70f66472
commit f6f7a4a6d7

View File

@ -90,6 +90,11 @@ nsUUIDGenerator::Init()
bytes += nbytes;
}
// call random once for the side effect of initializing
// glibc's internal state, so that initstate doesn't
// return NULL
random();
/* Initialize a new RNG state, and immediately switch
* back to the previous one -- we want to use mState
* only for our own calls to random().