Skip to content

Commit f4c0fda

Browse files
author
Beau Shinkle
committed
Clarify that bitsRequired caps out at 2 ** 32 - 1
1 parent 8b0bafe commit f4c0fda

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/rngTest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe("RNG", () => {
1111

1212
describe("bitsRequired", async () => {
1313
it("Returns the number of bits required", async () => {
14-
// Any number higher than 2**32 will just return 32
14+
// Any number higher than 2**32 - 1 will return 32
1515
expect(await rngInstance.bitsRequired(2 ** 32 + 1)).to.be.equal(32)
1616
expect(await rngInstance.bitsRequired(2 ** 32)).to.be.equal(32)
1717
expect(await rngInstance.bitsRequired(2 ** 32 - 1)).to.be.equal(32)

0 commit comments

Comments
 (0)