diff options
author | Sterling Hughes <sterling@php.net> | 2001-09-09 10:44:12 +0000 |
---|---|---|
committer | Sterling Hughes <sterling@php.net> | 2001-09-09 10:44:12 +0000 |
commit | 6963ac405006e66a1628eaae057f92fd9ca83f6e (patch) | |
tree | 90f924521fee6eccb1b45309481fb3fba0abfa9a /ext/standard/php_rand.h | |
parent | eede70a84fdf152261a6f0ab4e96c54cf9c1c9a5 (diff) | |
download | php-git-6963ac405006e66a1628eaae057f92fd9ca83f6e.tar.gz |
export the mt rand functions...
Diffstat (limited to 'ext/standard/php_rand.h')
-rw-r--r-- | ext/standard/php_rand.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/standard/php_rand.h b/ext/standard/php_rand.h index b4d7e991d0..7b3b471e40 100644 --- a/ext/standard/php_rand.h +++ b/ext/standard/php_rand.h @@ -25,7 +25,9 @@ #define PHP_RAND_H #include <stdlib.h> +#include "basic_functions.h" +/* System Rand functions */ #ifndef RAND_MAX #define RAND_MAX (1<<15) #endif @@ -58,4 +60,10 @@ #endif #endif +/* MT Rand */ +#define PHP_MT_RAND_MAX ((long)(0x7FFFFFFF)) /* (1<<31) - 1 */ + +PHPAPI void php_mt_srand(php_uint32 seed TSRMLS_DC); +PHPAPI php_uint32 php_mt_rand(TSRMLS_D); + #endif /* PHP_RAND_H */ |