include::../description.adoc[] include::../ask-yourself.adoc[] include::../recommended.adoc[] == Sensitive Code Example ---- val random = Random() // Noncompliant: Random() is not a secure random number generaotr val bytes = ByteArray(20) random.nextBytes(bytes) ---- == Compliant Solution ---- val random = SecureRandom() // Compliant val bytes = ByteArray(20) random.nextBytes(bytes) ---- include::../see.adoc[] ifdef::env-github,rspecator-view[] ''' == Implementation Specification (visible only on this page) include::../message.adoc[] ''' == Comments And Links (visible only on this page) include::../comments-and-links.adoc[] endif::env-github,rspecator-view[]