MDL-33911 lib/evalmath: fix strict syntax notices

This commit is contained in:
Tim Hunt
2012-06-20 13:48:37 +01:00
parent c575842ce9
commit 4efc3d4096
+3 -4
View File
@@ -557,9 +557,8 @@ class EvalMathFuncs {
return $min + $randomno;
}
static function rand_float(){
$randomvalue = array_shift(unpack('v', md5(self::get_random_seed(), true)));
return $randomvalue / 65536;
static function rand_float() {
$randomvalues = unpack('v', md5(self::get_random_seed(), true));
return array_shift($randomvalues) / 65536;
}
}