summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/array.c')
-rw-r--r--ext/standard/array.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c
index 3ca5559e12..490640c15a 100644
--- a/ext/standard/array.c
+++ b/ext/standard/array.c
@@ -1364,18 +1364,7 @@ PHP_FUNCTION(range)
static int array_data_shuffle(const void *a, const void*b) {
- return (
- /* This is just a little messy. */
-#ifdef HAVE_RANDOM
- random()
-#else
-#ifdef HAVE_LRAND48
- lrand48()
-#else
- rand()
-#endif
-#endif
- % 2) ? 1 : -1;
+ return (php_rand() % 2) ? 1 : -1;
}