Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:sjcundy:Programming
php5
php-5.2.5-CVE-2008-2108.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File php-5.2.5-CVE-2008-2108.patch of Package php5
Index: ext/standard/php_rand.h =================================================================== --- ext/standard/php_rand.h.orig 2007-01-01 10:36:08.000000000 +0100 +++ ext/standard/php_rand.h 2008-06-11 06:43:50.000000000 +0200 @@ -49,7 +49,7 @@ #ifdef PHP_WIN32 #define GENERATE_SEED() ((long) (time(0) * GetCurrentProcessId() * 1000000 * php_combined_lcg(TSRMLS_C))) #else -#define GENERATE_SEED() ((long) (time(0) * getpid() * 1000000 * php_combined_lcg(TSRMLS_C))) +#define GENERATE_SEED() (((long) (time(0) * getpid())) ^ ((long) (1000000.0 * php_combined_lcg(TSRMLS_C)))) #endif PHPAPI void php_srand(long seed TSRMLS_DC);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor