summaryrefslogtreecommitdiff
path: root/ext/standard/php_rand.h
diff options
context:
space:
mode:
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 */