Skip to content

Commit 5cfe673

Browse files
committed
Update snowflake_id.dart
1 parent ca80241 commit 5cfe673

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nitrite/lib/src/collection/snowflake_id.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class SnowflakeIdGenerator {
5858
int _getNodeId() {
5959
var uuid = Uuid();
6060
var uid = ascii.encode(uuid.v4());
61-
var rndByte = _random.nextInt(0XFFFFFFFF) & 0x000000FF;
61+
var rndByte = _random.nextInt(0xFFFFFFFF) & 0x000000FF;
6262

6363
return ((0x000000FF & uid[uid.length - 1]) |
6464
(0x0000FF00 & (rndByte << 8))) >>

0 commit comments

Comments
 (0)