Skip to content

Commit 6cea37d

Browse files
authored
Merge pull request #40 from facile-it/hotfix/replace-mt_rand-with-random_int
Use random_int instead of mt_rand.
2 parents d15d9f7 + 7255001 commit 6cea37d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Moka/Generator/Template/ClassTemplate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ protected static function doGenerate(\ReflectionClass $class): string
103103
$proxyClassName = sprintf(
104104
self::TEMPLATE_FQCN,
105105
preg_replace('/\\\/', '__', $mockClassName),
106-
mt_rand()
106+
random_int($min = 0, $max = PHP_INT_MAX)
107107
);
108108

109109
list($callNameType, $callArgumentsType) = $callParametersTypes;

0 commit comments

Comments
 (0)