You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pseudoRandomBytes was deprecated and is no longer documented in the official API docs.
pseudoRandomBytes uses randomBytes under the hood
On a newly booted system, the entropy pool of the system may be empty and will not give us the amount of random bytes that we need to generate random names.
This will cause randomBytes to throw an error, or, in case of the async interface, to return an error instead.
In either case, we must compensate for this and implement our own pseudoRandomBytes function, similar to what tmp did before the introduction of crypto.
Operating System
NodeJS Version
Tmp Version
0.2.1+
Problem
On a newly booted system, the entropy pool of the system may be empty and will not give us the amount of random bytes that we need to generate random names.
This will cause randomBytes to throw an error, or, in case of the async interface, to return an error instead.
In either case, we must compensate for this and implement our own pseudoRandomBytes function, similar to what tmp did before the introduction of crypto.
See also
The text was updated successfully, but these errors were encountered: