define/declare randomstring as static function

This commit is contained in:
Klaus Leithoff 2008-08-29 13:31:33 +00:00
parent ff32c498c6
commit 1d48d7d217

View File

@ -257,7 +257,7 @@
* *
* @param $size int-size of random string to return * @param $size int-size of random string to return
*/ */
function randomstring($size) static function randomstring($size)
{ {
$s = ''; $s = '';
srand((double)microtime()*1000000); srand((double)microtime()*1000000);