mirror of
https://github.com/LX3JL/xlxd.git
synced 2025-12-06 07:42:01 +01:00
do not re-seed random generator for each random id
This commit is contained in:
parent
9ca67d1e23
commit
7f4f23610e
|
|
@ -52,7 +52,6 @@ function FormatSeconds($seconds) {
|
||||||
|
|
||||||
function CreateCode ($laenge) {
|
function CreateCode ($laenge) {
|
||||||
$zeichen = "1234567890abcdefghijklmnopqrstuvwyxzABCDEFGHIJKLMNAOPQRSTUVWYXZ";
|
$zeichen = "1234567890abcdefghijklmnopqrstuvwyxzABCDEFGHIJKLMNAOPQRSTUVWYXZ";
|
||||||
mt_srand( (double) microtime() * 1000000);
|
|
||||||
$out = "";
|
$out = "";
|
||||||
for ($i=1;$i<=$laenge;$i++){
|
for ($i=1;$i<=$laenge;$i++){
|
||||||
$out .= $zeichen[mt_rand(0,(strlen($zeichen)-1))];
|
$out .= $zeichen[mt_rand(0,(strlen($zeichen)-1))];
|
||||||
|
|
@ -153,4 +152,4 @@ function kbytes_to_string($kb) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue