Skip to content

Commit

Permalink
Merge pull request #17 from sun-jiao/main
Browse files Browse the repository at this point in the history
reduce bytes length for memory saving, closes #16
  • Loading branch information
pitabwire authored May 14, 2024
2 parents c1b8480 + 03afe7b commit 5242532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/xid_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class Xid {
var counter = _counter();
var machineID = _getMachineId();

_xidBytes = List.filled(20, 0, growable: false);
_xidBytes = List.filled(12, 0, growable: false);

_xidBytes![0] = (now >> 24) & 0xff;
_xidBytes![1] = (now >> 16) & 0xff;
Expand Down

0 comments on commit 5242532

Please sign in to comment.