summaryrefslogtreecommitdiff
path: root/ext/standard/php_rand.h
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2001-09-09 10:44:12 +0000
committerSterling Hughes <sterling@php.net>2001-09-09 10:44:12 +0000
commit6963ac405006e66a1628eaae057f92fd9ca83f6e (patch)
tree90f924521fee6eccb1b45309481fb3fba0abfa9a /ext/standard/php_rand.h
parenteede70a84fdf152261a6f0ab4e96c54cf9c1c9a5 (diff)
downloadphp-git-6963ac405006e66a1628eaae057f92fd9ca83f6e.tar.gz
export the mt rand functions...
Diffstat (limited to 'ext/standard/php_rand.h')
-rw-r--r--ext/standard/php_rand.h8
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 */