mirror of
https://github.com/librespeed/speedtest.git
synced 2026-08-04 06:39:45 +00:00
Merge pull request #617 from zypA13510/revert-487-patch-1
fix: download speed is 0 on certain platform
This commit is contained in:
commit
3034bf2b2d
1 changed files with 1 additions and 5 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue