Skip to content

Files

Latest commit

 

History

History
17 lines (12 loc) · 733 Bytes

insecure-random.md

File metadata and controls

17 lines (12 loc) · 733 Bytes

Pattern: Use of insecure random source

Issue: -

Description

Do not use insecure sources for random bytes. Use a secure random number generator instead. Bans all uses of Math.random and crypto.pseudoRandomBytes. Better alternatives are crypto.randomBytes and window.crypto.getRandomValues.

Further Reading