cvs: php4(RAND_REDESIGN) /ext/standard crypt.c
| From: | Jeroen van Wolffelaar | Date: | Wed, 22 Aug 2001 22:15:34 +0000 |
| Subject: | cvs: php4(RAND_REDESIGN) /ext/standard crypt.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-7030@lists.php.net to get a copy of this message | ||
jeroen Wed Aug 22 18:15:34 2001 EDT
Modified files: (Branch: RAND_REDESIGN)
/php4/ext/standard crypt.c
Log:
Fixed the right version
Index: php4/ext/standard/crypt.c
diff -u php4/ext/standard/crypt.c:1.45 php4/ext/standard/crypt.c:1.45.4.1
--- php4/ext/standard/crypt.c:1.45 Sat Aug 11 13:03:36 2001
+++ php4/ext/standard/crypt.c Wed Aug 22 18:15:33 2001
@@ -17,7 +17,7 @@
| Rasmus Lerdorf <rasmus@lerdorf.on.ca> |
+----------------------------------------------------------------------+
*/
-/* $Id: crypt.c,v 1.45 2001/08/11 17:03:36 zeev Exp $ */
+/* $Id: crypt.c,v 1.45.4.1 2001/08/22 22:15:33 jeroen Exp $ */
#include <stdlib.h>
#include "php.h"
@@ -106,7 +106,8 @@
PHP_RINIT_FUNCTION(crypt)
{
if(!php_crypt_rand_seeded) {
- php_srand(time(0) * getpid() * (php_combined_lcg(TSRMLS_C) * 10000.0));
+ /* FIXME (jeroen): temporary fix for RAND_REDESIGN */
+ php_srand_sys(time(0) * getpid() * (php_combined_lcg(TSRMLS_C) * 10000.0));
php_crypt_rand_seeded=1;
}
return SUCCESS;