diff options
author | Leigh <leigh@php.net> | 2016-07-05 15:09:49 +0100 |
---|---|---|
committer | Leigh <leigh@php.net> | 2016-07-05 15:09:49 +0100 |
commit | 6d6ef7aacc7f9b17709d2f93b70b359c75011f89 (patch) | |
tree | 3bfc0fff510dcd5cc8d42d6dfc8f03b8d7556c1c /ext/standard/basic_functions.c | |
parent | 1f5cfea087e25fc408e7aedbb2988e4be450dd5c (diff) | |
download | php-git-6d6ef7aacc7f9b17709d2f93b70b359c75011f89.tar.gz |
Alias rand to mt_rand
Diffstat (limited to 'ext/standard/basic_functions.c')
-rw-r--r-- | ext/standard/basic_functions.c | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index e712d76216..4c1321b674 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -1883,19 +1883,6 @@ ZEND_BEGIN_ARG_INFO(arginfo_quoted_printable_encode, 0) ZEND_ARG_INFO(0, str) ZEND_END_ARG_INFO() /* }}} */ -/* {{{ rand.c */ -ZEND_BEGIN_ARG_INFO_EX(arginfo_srand, 0, 0, 0) - ZEND_ARG_INFO(0, seed) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_rand, 0, 0, 0) - ZEND_ARG_INFO(0, min) - ZEND_ARG_INFO(0, max) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO(arginfo_getrandmax, 0) -ZEND_END_ARG_INFO() -/* }}} */ /* {{{ mt_rand.c */ ZEND_BEGIN_ARG_INFO_EX(arginfo_mt_srand, 0, 0, 0) ZEND_ARG_INFO(0, seed) @@ -2865,10 +2852,10 @@ const zend_function_entry basic_functions[] = { /* {{{ */ PHP_FE(proc_nice, arginfo_proc_nice) #endif - PHP_FE(rand, arginfo_rand) - PHP_FE(srand, arginfo_srand) - PHP_FE(getrandmax, arginfo_getrandmax) - PHP_FE(mt_rand, arginfo_mt_rand) + PHP_FALIAS(rand, mt_rand, arginfo_mt_rand) + PHP_FALIAS(srand, mt_srand, arginfo_mt_srand) + PHP_FALIAS(getrandmax, mt_getrandmax, arginfo_mt_getrandmax) + PHP_FE(mt_rand, arginfo_mt_rand) PHP_FE(mt_srand, arginfo_mt_srand) PHP_FE(mt_getrandmax, arginfo_mt_getrandmax) PHP_FE(mt_rand_mode, arginfo_mt_rand_mode) @@ -3484,7 +3471,6 @@ static void php_putenv_destructor(zval *zv) /* {{{ */ static void basic_globals_ctor(php_basic_globals *basic_globals_p) /* {{{ */ { - BG(rand_is_seeded) = 0; BG(mt_rand_is_seeded) = 0; BG(mt_rand_mode) = MT_RAND_MT19937; BG(umask) = -1; |