Searched refs:LCG (Results 1 – 2 of 2) sorted by relevance
/PHP-7.3/ext/standard/ |
H A D | lcg.c | 58 if (!LCG(seeded)) { in php_combined_lcg() 62 MODMULT(53668, 40014, 12211, 2147483563L, LCG(s1)); in php_combined_lcg() 63 MODMULT(52774, 40692, 3791, 2147483399L, LCG(s2)); in php_combined_lcg() 65 z = LCG(s1) - LCG(s2); in php_combined_lcg() 79 LCG(s1) = tv.tv_sec ^ (tv.tv_usec<<11); in lcg_seed() 81 LCG(s1) = 1; in lcg_seed() 84 LCG(s2) = (zend_long) tsrm_thread_id(); in lcg_seed() 86 LCG(s2) = (zend_long) getpid(); in lcg_seed() 91 LCG(s2) ^= (tv.tv_usec<<11); in lcg_seed() 94 LCG(seeded) = 1; in lcg_seed() [all …]
|
H A D | php_lcg.h | 36 #define LCG(v) ZEND_TSRMG(lcg_globals_id, php_lcg_globals *, v) macro 38 #define LCG(v) (lcg_globals.v) macro
|
Completed in 8 milliseconds