Skip to content

Commit

Permalink
8248862: Implement Enhanced Pseudo-Random Number Generators
Browse files Browse the repository at this point in the history
Reviewed-by: darcy
  • Loading branch information
Jim Laskey committed Apr 5, 2021
1 parent 39719da commit a0ec2cb
Show file tree
Hide file tree
Showing 27 changed files with 11,383 additions and 1,771 deletions.
8 changes: 7 additions & 1 deletion src/java.base/share/classes/java/security/SecureRandom.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@

package java.security;

import java.math.BigInteger;
import java.util.*;
import java.util.random.RandomGenerator;
import java.util.regex.*;

import java.security.Provider.Service;

import jdk.internal.util.random.RandomSupport.RandomGeneratorProperties;
import sun.security.jca.*;
import sun.security.jca.GetInstance.Instance;
import sun.security.provider.SunEntries;
Expand Down Expand Up @@ -147,6 +149,10 @@
* @since 1.1
*/

@RandomGeneratorProperties(
name = "SecureRandom",
isStochastic = true
)
public class SecureRandom extends java.util.Random {

private static final Debug pdebug =
Expand Down
Loading

1 comment on commit a0ec2cb

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.