We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7426420 commit 2f4a47dCopy full SHA for 2f4a47d
1 file changed
lib/private/Snowflake/SnowflakeGenerator.php
@@ -107,9 +107,10 @@ private function getCurrentTime(): array {
107
*/
108
private function getServerId(): int {
109
$serverid = $this->config->getSystemValueInt('serverid', -1);
110
+
111
return $serverid > 0
112
? $serverid
- : crc32(gethostname() ?: random_bytes(8));
113
+ : hexdec(hash('xxh32', gethostname() ?: random_bytes(8)));
114
}
115
116
private function isCli(): bool {
0 commit comments