File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ class FunctionRegistrar
99 protected $ functions = [
1010 Functions \Curdate::class,
1111 Functions \DateFormat::class,
12- Functions \Substring ::class,
12+ Functions \Rand ::class,
1313 Functions \Regexp::class,
14+ Functions \Substring::class,
1415 ];
1516
1617 /**
Original file line number Diff line number Diff line change 22
33namespace Appel \SqliteFunctions \Functions ;
44
5- use Closure
5+ use Closure ;
66
77class Rand extends AbstractFunction
88{
@@ -13,8 +13,8 @@ class Rand extends AbstractFunction
1313 */
1414 public function mysql (): Closure
1515 {
16- return function ($ seed ) {
17- return mt_rand ( ) / mt_getrandmax ();
16+ return function ($ seed = null ) {
17+ return mt_srand ( $ seed ) / mt_getrandmax ();
1818 };
1919 }
2020}
You can’t perform that action at this time.
0 commit comments