Revert "Use random_bytes when available (#487)"
This reverts commit fa0ac8cd23
.
This commit is contained in:
parent
dd1ce2cb88
commit
ea25001e42
|
@ -53,11 +53,7 @@ function sendHeaders()
|
||||||
$chunks = getChunkCount();
|
$chunks = getChunkCount();
|
||||||
|
|
||||||
// Generate data
|
// Generate data
|
||||||
if (function_exists('random_bytes')) {
|
$data = openssl_random_pseudo_bytes(1048576);
|
||||||
$data = random_bytes(1048576);
|
|
||||||
} else {
|
|
||||||
$data = openssl_random_pseudo_bytes(1048576);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deliver chunks of 1048576 bytes
|
// Deliver chunks of 1048576 bytes
|
||||||
sendHeaders();
|
sendHeaders();
|
||||||
|
|
Loading…
Reference in a new issue