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 5e312c1 commit 19bb93cCopy full SHA for 19bb93c
test/parallel/test-crypto-randomuuidv7.js
@@ -56,7 +56,9 @@ const {
56
const timestamp = parseInt(timestampHex, 16);
57
58
assert(timestamp >= before, `Timestamp ${timestamp} < before ${before}`);
59
- assert(timestamp <= after, `Timestamp ${timestamp} > after ${after}`);
+ // The monotonic counter may have overflowed in a prior call and advanced
60
+ // v7LastTimestamp by 1 ms beyond wall-clock time (RFC 9562 §6.2 allows this).
61
+ assert(timestamp <= after + 1, `Timestamp ${timestamp} > after+1 ${after + 1}`);
62
}
63
64
{
0 commit comments