Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Related Guidelines

CERT C Coding Standard

MSC30-C. Do not use the rand() function for generating pseudorandom numbers

CERT C++ Coding Standard

MSC30MSC50-CPP. Do not use the std::rand() function for generating pseudorandom numbers

MITRE CWE

CWE-327. Use of a broken or risky cryptographic algorithm

 

CWE-330. Use of insufficiently random values

 

CWE-332. Insufficient entropy in PRNG

 

CWE-336. Same seed in PRNG

 

CWE-337. Predictable seed in PRNG

...

[API 2006

Class Random

[API 2006]

Class SecureRandom

[FindBugs 2008]

BC. Random objects created and used only once

[Monsch 2006]

 

 Image Removed Image Removed Image Removed

...

Image Added Image Added Image Added