Ver código fonte

Ticket #1797
I have removed srand function, because it is not necessary to use it from php 4.2.0 version.

AlexeyUna 8 anos atrás
pai
commit
13d63fde65
1 arquivos alterados com 0 adições e 1 exclusões
  1. 0 1
      inc/utils.inc.php

+ 0 - 1
inc/utils.inc.php

@@ -1017,7 +1017,6 @@ function genRndPwd($iLength = 8, $bSpecialCharacters = true)
     if($bSpecialCharacters === true)
         $sChars .= "!?=/&+,.";
 
-    srand((double)microtime()*1000000);
     for($i = 0; $i < $iLength; $i++) {
         $x = mt_rand(0, strlen($sChars) -1);
         $sPassword .= $sChars{$x};