We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
bitsRequired
1 parent 8b0bafe commit f4c0fdaCopy full SHA for f4c0fda
1 file changed
test/rngTest.js
@@ -11,7 +11,7 @@ describe("RNG", () => {
11
12
describe("bitsRequired", async () => {
13
it("Returns the number of bits required", async () => {
14
- // Any number higher than 2**32 will just return 32
+ // Any number higher than 2**32 - 1 will return 32
15
expect(await rngInstance.bitsRequired(2 ** 32 + 1)).to.be.equal(32)
16
expect(await rngInstance.bitsRequired(2 ** 32)).to.be.equal(32)
17
expect(await rngInstance.bitsRequired(2 ** 32 - 1)).to.be.equal(32)
0 commit comments