Explorar o código

Merge pull request #617 from zypA13510/revert-487-patch-1

fix: download speed is 0 on certain platform
sstidl hai 1 ano
pai
achega
3034bf2b2d
Modificáronse 1 ficheiros con 1 adicións e 5 borrados
  1. 1 5
      backend/garbage.php

+ 1 - 5
backend/garbage.php

@@ -53,11 +53,7 @@ function sendHeaders()
 $chunks = getChunkCount();
 $chunks = getChunkCount();
 
 
 // Generate data
 // 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
 // Deliver chunks of 1048576 bytes
 sendHeaders();
 sendHeaders();