Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c575842
)
MDL-33911 lib/evalmath: fix strict syntax notices
author
Tim Hunt
<T.J.Hunt@open.ac.uk>
Wed, 20 Jun 2012 12:48:37 +0000
(13:48 +0100)
committer
Tim Hunt
<T.J.Hunt@open.ac.uk>
Wed, 20 Jun 2012 12:48:37 +0000
(13:48 +0100)
lib/evalmath/evalmath.class.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/evalmath/evalmath.class.php
b/lib/evalmath/evalmath.class.php
index
9d9c7d6
..
8f68d2a
100644
(file)
--- a/
lib/evalmath/evalmath.class.php
+++ b/
lib/evalmath/evalmath.class.php
@@
-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()
{
+ $randomvalue
s = unpack('v', md5(self::get_random_seed(), true
));
+ return
array_shift($randomvalues)
/ 65536;
}
-
}