(upper)
| 7 | const suite = new Benchmark.Suite(); |
| 8 | |
| 9 | function random256(upper) { |
| 10 | return crypto.randomBytes(1)[0] % upper; |
| 11 | } |
| 12 | |
| 13 | function random65536(upper) { |
| 14 | return crypto.randomBytes(2).readUIntBE(0, 2) % upper; |
no outgoing calls
no test coverage detected
searching dependent graphs…