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 ca80241 commit 5cfe673Copy full SHA for 5cfe673
packages/nitrite/lib/src/collection/snowflake_id.dart
@@ -58,7 +58,7 @@ class SnowflakeIdGenerator {
58
int _getNodeId() {
59
var uuid = Uuid();
60
var uid = ascii.encode(uuid.v4());
61
- var rndByte = _random.nextInt(0XFFFFFFFF) & 0x000000FF;
+ var rndByte = _random.nextInt(0xFFFFFFFF) & 0x000000FF;
62
63
return ((0x000000FF & uid[uid.length - 1]) |
64
(0x0000FF00 & (rndByte << 8))) >>
0 commit comments