Construct a buffered random pool.
Have a reminder that this stream works asynchronously and the random bytes cannot
serve immediately thus you might result getting undefined
if you
impatient to get the random numbers.
High water mark indicates the stream will going to
fill until the amount of bytes reach this number, default is 16384
(16kb).
Higher values will take more time (depends on the running speed of the machine)
to fill up and get ready to use and lower values will drain the stream more quickly
Oversampling, default is 1
(No oversample)
Flags controls the Jitterentropy behaviour
Construct a buffered random pool.
Have a reminder that this stream works asynchronously and the random bytes cannot
serve immediately thus you might result getting undefined
if you
impatient to get the random numbers.
Oversampling, default is 1
(No oversample)
Flags controls the Jitterentropy behaviour
Event emitter The defined events on documents including:
Pops a positive integer number from the random buffer. This method is the core of other helper functions which pops a number in this class.
how many bytes does the number requires, minumum is 1 and maximum is 6
A random positive integer number between 0 and (2 ^ (bytes * 8)
),
or undefined
if the random bits are not yet available
Pops a float-point number between 0 and 1.
Pops a float-point number between 0 and the value given.
The number that generated number must not greater or equals to
Pops a float-point number between the values given.
The number that generated number must not smaller to
The number that generated number must not greater or equals to
How many bytes will be used to get the number. Minimum is 1 (1 / 256 fragments), maximum is 6 (1 / 281,474,976,710,656 fragments), default is 6
Pops an integer number between 0 and the value given.
The number that generated number must not greater or equals to
Pops an integer number between the values given.
The number that generated number must not smaller to
The number that generated number must not greater or equals to
Creates a random pool stream in a promise which resolves when it is ready to use.
High water mark indicates the stream will going to
fill until the amount of bytes reach this number, default is 16384
(16kb).
Higher values will take more time (depends on the running speed of the machine)
to fill up and get ready to use and lower values will drain the stream more quickly
Oversampling, default is 1
(No oversample)
Flags controls the Jitterentropy behaviour
Generated using TypeDoc
Buffered random pool from the results of Jitterentropy as a readable stream. Provide a more convenient, non-blocking way to use the random generator.