1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #ifndef PHP_LCG_H
- #define PHP_LCG_H
- #include "ext/standard/basic_functions.h"
- typedef struct {
- int32_t s1;
- int32_t s2;
- int seeded;
- } php_lcg_globals;
- PHPAPI double php_combined_lcg(void);
- PHP_FUNCTION(lcg_value);
- PHP_MINIT_FUNCTION(lcg);
- #ifdef ZTS
- #define LCG(v) ZEND_TSRMG(lcg_globals_id, php_lcg_globals *, v)
- #else
- #define LCG(v) (lcg_globals.v)
- #endif
- #endif
|