]> granicus.if.org Git - php/commitdiff
MFB
authorAntony Dovgal <tony2001@php.net>
Thu, 10 May 2007 21:26:51 +0000 (21:26 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 10 May 2007 21:26:51 +0000 (21:26 +0000)
ext/soap/php_http.c

index 160a2042899ca249d3d795f51f58cf1ba991a07a..f2c8fba64d10a399df016eab316fe279c5f79129 100644 (file)
@@ -465,10 +465,9 @@ try_again:
                                        char          HA1[33], HA2[33], response[33], cnonce[33], nc[9];
                                        PHP_MD5_CTX   md5ctx;
                                        unsigned char hash[16];
-                                       unsigned int ctx;
 
                                        PHP_MD5Init(&md5ctx);
-                                       snprintf(cnonce, sizeof(cnonce), "%d", php_rand_r(&ctx));
+                                       snprintf(cnonce, sizeof(cnonce), "%ld", php_rand(TSRMLS_C);
                                        PHP_MD5Update(&md5ctx, (unsigned char*)cnonce, strlen(cnonce));
                                        PHP_MD5Final(hash, &md5ctx);
                                        make_digest(cnonce, hash);