summaryrefslogtreecommitdiff
path: root/ext/spl/php_spl.c
diff options
context:
space:
mode:
authorLeigh <leigh@php.net>2016-07-05 15:09:49 +0100
committerLeigh <leigh@php.net>2016-07-05 15:09:49 +0100
commit6d6ef7aacc7f9b17709d2f93b70b359c75011f89 (patch)
tree3bfc0fff510dcd5cc8d42d6dfc8f03b8d7556c1c /ext/spl/php_spl.c
parent1f5cfea087e25fc408e7aedbb2988e4be450dd5c (diff)
downloadphp-git-6d6ef7aacc7f9b17709d2f93b70b359c75011f89.tar.gz
Alias rand to mt_rand
Diffstat (limited to 'ext/spl/php_spl.c')
-rw-r--r--ext/spl/php_spl.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c
index d4d1a208a8..d352893672 100644
--- a/ext/spl/php_spl.c
+++ b/ext/spl/php_spl.c
@@ -39,7 +39,6 @@
#include "spl_heap.h"
#include "zend_exceptions.h"
#include "zend_interfaces.h"
-#include "ext/standard/php_rand.h"
#include "ext/standard/php_mt_rand.h"
#include "main/snprintf.h"
@@ -747,10 +746,6 @@ PHPAPI zend_string *php_spl_object_hash(zval *obj) /* {{{*/
intptr_t hash_handle, hash_handlers;
if (!SPL_G(hash_mask_init)) {
- if (!BG(mt_rand_is_seeded)) {
- php_mt_srand((uint32_t)GENERATE_SEED());
- }
-
SPL_G(hash_mask_handle) = (intptr_t)(php_mt_rand() >> 1);
SPL_G(hash_mask_handlers) = (intptr_t)(php_mt_rand() >> 1);
SPL_G(hash_mask_init) = 1;