We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d59561 commit 1855e9dCopy full SHA for 1855e9d
src/java.base/share/classes/java/security/SecureRandom.java
@@ -725,6 +725,11 @@ public void setSeed(byte[] seed) {
725
* in the given {@code long seed}. The given seed supplements,
726
* rather than replaces, the existing seed. Thus, repeated calls
727
* are guaranteed never to reduce randomness.
728
+ * <p>
729
+ * A PRNG {@code SecureRandom} will not seed itself automatically if
730
+ * {@code setSeed} is called before any {@code nextBytes} or {@code reseed}
731
+ * calls. The caller should make sure that the {@code seed} argument
732
+ * contains enough entropy for the security of this {@code SecureRandom}.
733
*
734
* <p>This method is defined for compatibility with
735
* {@code java.util.Random}.
0 commit comments