mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8220732: setSeed(long) java api doc is missing warning about provided seed quality
Reviewed-by: wetmore
This commit is contained in:
parent
6d595614a2
commit
1855e9d201
1 changed files with 5 additions and 0 deletions
|
@ -725,6 +725,11 @@ public class SecureRandom extends java.util.Random {
|
||||||
* in the given {@code long seed}. The given seed supplements,
|
* in the given {@code long seed}. The given seed supplements,
|
||||||
* rather than replaces, the existing seed. Thus, repeated calls
|
* rather than replaces, the existing seed. Thus, repeated calls
|
||||||
* are guaranteed never to reduce randomness.
|
* are guaranteed never to reduce randomness.
|
||||||
|
* <p>
|
||||||
|
* A PRNG {@code SecureRandom} will not seed itself automatically if
|
||||||
|
* {@code setSeed} is called before any {@code nextBytes} or {@code reseed}
|
||||||
|
* calls. The caller should make sure that the {@code seed} argument
|
||||||
|
* contains enough entropy for the security of this {@code SecureRandom}.
|
||||||
*
|
*
|
||||||
* <p>This method is defined for compatibility with
|
* <p>This method is defined for compatibility with
|
||||||
* {@code java.util.Random}.
|
* {@code java.util.Random}.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue