Skip to content

crypto: make pseudoRandomBytes an alias for randomBytes

Rodrigo Muino Tomonari requested to merge github/fork/calvinmetcalf/rm-prb into v1.x

Previously pseudoRandomBytes worked similarly to randomBytes but in the event of insufficient entropy would silently return non-secure values. As of f68a116c the entropy pool blocks if there is insufficient entropy instead of giving an error so there is now no longer a case where pseudoRandomBytes would act differently then randomBytes.

Inspired by discussions on #545

Merge request reports

Loading