From 219c7ab903b424fc70d64d6641691040a7b34f08 Mon Sep 17 00:00:00 2001 From: "vladimir%pobox.com" Date: Mon, 14 Aug 2006 22:04:01 +0000 Subject: [PATCH] b=327161, uuidgenerator stuff, attempt to fix btek from previous checkin, r=bz git-svn-id: svn://10.0.0.236/trunk@207377 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/base/nsUUIDGenerator.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mozilla/xpcom/base/nsUUIDGenerator.cpp b/mozilla/xpcom/base/nsUUIDGenerator.cpp index b9cffc6cc4c..2f3c6cd7e75 100644 --- a/mozilla/xpcom/base/nsUUIDGenerator.cpp +++ b/mozilla/xpcom/base/nsUUIDGenerator.cpp @@ -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().