This commit is contained in:
foobar 2001-10-21 03:01:17 +00:00
parent cc0c2ea603
commit 5db38caece
2 changed files with 2 additions and 1 deletions

1
NEWS
View file

@ -48,6 +48,7 @@ PHP 4.0 NEWS
- Improved support for autoconf-2.50+/libtool 1.4b+. (Jan Kneschke, Sascha)
?? ??? 200?, Version 4.1.0
- Fixed a crash bug within Cobalt systems. Patch by tomc@tripac.com. (Jani)
- Introduced extension version numbers (Stig)
- Added version_compare() function (Stig)
- Fixed pg_last_notice() (could cause random crashes in PostgreSQL applications,

View file

@ -106,7 +106,7 @@ PHP_MINIT_FUNCTION(crypt)
PHP_RINIT_FUNCTION(crypt)
{
if(!php_crypt_rand_seeded) {
php_srand(time(0) * getpid() * (php_combined_lcg(TSRMLS_C) * 10000.0) TSRMLS_CC);
php_srand(time(0) * getpid() * (unsigned long) (php_combined_lcg(TSRMLS_C) * 10000.0) TSRMLS_CC);
php_crypt_rand_seeded=1;
}
return SUCCESS;