Backed out changeset 7b6b2d8dd79b (bug 1015547) for bustage.

This commit is contained in:
Ryan VanderMeulen
2014-05-30 17:09:34 -04:00
parent 6604da0b32
commit a9ebcd2cb3
2 changed files with 1 additions and 5 deletions

View File

@@ -126,9 +126,6 @@ nsUUIDGenerator::GenerateUUIDInPlace(nsID* aId)
setstate(mState);
#endif
#ifdef HAVE_ARC4RANDOM_BUF
arc4random_buf(aId, sizeof(nsID));
#else /* HAVE_ARC4RANDOM_BUF */
size_t bytesLeft = sizeof(nsID);
while (bytesLeft > 0) {
#ifdef HAVE_ARC4RANDOM
@@ -153,7 +150,6 @@ nsUUIDGenerator::GenerateUUIDInPlace(nsID* aId)
bytesLeft -= toWrite;
}
#endif /* HAVE_ARC4RANDOM_BUF */
/* Put in the version */
aId->m2 &= 0x0fff;