Skip to content

Commit

Permalink
Merge pull request #103 from wonder-game/develop
Browse files Browse the repository at this point in the history
fix: 修复种子生成器
  • Loading branch information
Joyboo authored Apr 27, 2024
2 parents 700d7c1 + b6fa67e commit 60ab0dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/function.php
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,7 @@ function redis_list_push(Redis $redis, string $key, $data, bool $left = false)
// 写一定要比读小!!!不然redis会爆!!!
$cn = min($clusterNumber ?: 0, $clusterNumberWrite ?: 0);
if ($cn > 0) {
mt_rand();
mt_srand();
$index = mt_rand(-1, $cn);
$index > 0 && $key .= ".$index";
}
Expand Down

0 comments on commit 60ab0dc

Please sign in to comment.