Skip to content

Commit ea25001

Browse files
authored
Revert "Use random_bytes when available (#487)"
This reverts commit fa0ac8c.
1 parent dd1ce2c commit ea25001

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

backend/garbage.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,7 @@ function sendHeaders()
5353
$chunks = getChunkCount();
5454

5555
// Generate data
56-
if (function_exists('random_bytes')) {
57-
$data = random_bytes(1048576);
58-
} else {
59-
$data = openssl_random_pseudo_bytes(1048576);
60-
}
56+
$data = openssl_random_pseudo_bytes(1048576);
6157

6258
// Deliver chunks of 1048576 bytes
6359
sendHeaders();

0 commit comments

Comments
 (0)