Skip to content

Commit

Permalink
Merge pull request #617 from zypA13510/revert-487-patch-1
Browse files Browse the repository at this point in the history
fix: download speed is 0 on certain platform
  • Loading branch information
sstidl authored May 18, 2024
2 parents 8a9467b + ea25001 commit 3034bf2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions backend/garbage.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,7 @@ function sendHeaders()
$chunks = getChunkCount();

// Generate data
if (function_exists('random_bytes')) {
$data = random_bytes(1048576);
} else {
$data = openssl_random_pseudo_bytes(1048576);
}
$data = openssl_random_pseudo_bytes(1048576);

// Deliver chunks of 1048576 bytes
sendHeaders();
Expand Down

0 comments on commit 3034bf2

Please sign in to comment.