Skip to content

Commit 3034bf2

Browse files
authored
Merge pull request #617 from zypA13510/revert-487-patch-1
fix: download speed is 0 on certain platform
2 parents 8a9467b + ea25001 commit 3034bf2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

backend/garbage.php

+1-5
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)