mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-33911 lib/evalmath: fix strict syntax notices
This commit is contained in:
parent
c575842ce9
commit
4efc3d4096
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user