Merge pull request #235 from narspt/patch-24

fix dashboard intermittently showing repeated callsigns on some servers
pull/237/head
LX1IQ 3 years ago committed by GitHub
commit 05de80ae86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -52,7 +52,6 @@ function FormatSeconds($seconds) {
function CreateCode ($laenge) {
$zeichen = "1234567890abcdefghijklmnopqrstuvwyxzABCDEFGHIJKLMNAOPQRSTUVWYXZ";
mt_srand( (double) microtime() * 1000000);
$out = "";
for ($i=1;$i<=$laenge;$i++){
$out .= $zeichen[mt_rand(0,(strlen($zeichen)-1))];
@ -153,4 +152,4 @@ function kbytes_to_string($kb) {
}
?>
?>

@ -52,7 +52,6 @@ function FormatSeconds($seconds) {
function CreateCode ($laenge) {
$zeichen = "1234567890abcdefghijklmnopqrstuvwyxzABCDEFGHIJKLMNAOPQRSTUVWYXZ";
mt_srand( (double) microtime() * 1000000);
$out = "";
for ($i=1;$i<=$laenge;$i++){
$out .= $zeichen[mt_rand(0,(strlen($zeichen)-1))];
@ -60,4 +59,4 @@ function CreateCode ($laenge) {
return $out;
}
?>
?>

Loading…
Cancel
Save

Powered by TurnKey Linux.