Skip to content

Commit

Permalink
Clarify that bitsRequired caps out at 2 ** 32 - 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Beau Shinkle committed May 1, 2022
1 parent 8b0bafe commit f4c0fda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/rngTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe("RNG", () => {

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

0 comments on commit f4c0fda

Please sign in to comment.