]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
s/random/squid_random/ to ease the Win32 port
authorhno <>
Mon, 15 Jul 2002 05:53:50 +0000 (05:53 +0000)
committerhno <>
Mon, 15 Jul 2002 05:53:50 +0000 (05:53 +0000)
src/auth/digest/auth_digest.cc

index 6868d272a08a020bc6fe7ed8fe812de8d5e76701..db542711861c76f9a217d1ca11771f72d4458720 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: auth_digest.cc,v 1.14 2002/04/13 23:07:54 hno Exp $
+ * $Id: auth_digest.cc,v 1.15 2002/07/14 23:53:50 hno Exp $
  *
  * DEBUG: section 29    Authenticator
  * AUTHOR: Robert Collins
@@ -174,7 +174,7 @@ authenticateDigestNonceNew(void)
     newnonce->flags.valid = 1;
     newnonce->noncedata.self = newnonce;
     newnonce->noncedata.creationtime = current_time.tv_sec;
-    newnonce->noncedata.randomdata = random();
+    newnonce->noncedata.randomdata = squid_random();
 
     authDigestNonceEncode(newnonce);
     /*
@@ -183,7 +183,7 @@ authenticateDigestNonceNew(void)
      */
     while ((temp = authenticateDigestNonceFindNonce(newnonce->hash.key))) {
        /* create a new nonce */
-       newnonce->noncedata.randomdata = random();
+       newnonce->noncedata.randomdata = squid_random();
        authDigestNonceEncode(newnonce);
     }
     hash_join(digest_nonce_cache, &newnonce->hash);