mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
16 lines
394 B
HTML
16 lines
394 B
HTML
<html>
|
|
<body>
|
|
Reports any uses of <code>java.lang.Random</code> or
|
|
<code>java.lang.Math.random()</code>.
|
|
<p>
|
|
In secure environments,
|
|
<code>java.secure.SecureRandom</code> is a better choice, since is offers cryptographically secure
|
|
random number generation.
|
|
</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
long token = new Random().nextLong();
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
</body>
|
|
</html> |