Versions Compared

Key

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

...

This rule appears in the C++ Secure Coding Standard as MSC30-C. Do not use the rand() function for generating pseudorandom numbers.

References

Wiki Markup
\[[FindAPI Bugs 0806|https://www.securecoding.cert.org/confluence/display/java/AA.+Java+References#AA.JavaReferences-FindBugs08API06]\] BC: Random objects created and uses only once
\\ [Class Random|http://java.sun.com/javase/6/docs/api/java/util/Random.html]

Wiki Markup
\[[API 06|https://www.securecoding.cert.org/confluence/display/java/AA.+Java+References#AA.JavaReferences-API06]\] [SecureRandm[|http://java.sun.com/javase/6/docs/api/java/security/SecureRandom.html][Class SecureRandom|http://java.sun.com/javase/6/docs/api/java/security/SecureRandom.html]

Wiki Markup
\[[Find Bugs 08|https://www.securecoding.cert.org/confluence/display/java/AA.+Java+References#AA.JavaReferences-FindBugs08]\] BC: Random objects created and uses only once