We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a219ba2 commit 42d8bbcCopy full SHA for 42d8bbc
2 files changed
tests/034.phpt
@@ -31,7 +31,7 @@ foreach ($datas as $data)
31
for ($i = 0; $i < $len - 1; $i++)
32
{
33
$sub = substr($str, 0, $i);
34
- $sub .= mcrypt_create_iv(30, MCRYPT_DEV_URANDOM);
+ $sub .= random_bytes(30);
35
$php_errormsg = null;
36
$v = msgpack_unserialize($sub);
37
}
tests/035.phpt
@@ -1,16 +1,11 @@
1
--TEST--
2
Profiling perf test.
3
--SKIPIF--
4
-<?php
5
-if (!extension_loaded("msgpack") || !extension_loaded("mcrypt")) {
6
- echo "skip";
7
-}
8
-?>
9
--FILE--
10
<?php
11
$data_array = array();
12
for ($i = 0; $i < 5000; $i++) {
13
- $data_array[mcrypt_create_iv(10, MCRYPT_DEV_URANDOM)] = mcrypt_create_iv(10, MCRYPT_DEV_URANDOM);
+ $data_array[random_bytes(10)] = random_bytes(10);
14
15
16
$time_start = microtime(true);
0 commit comments