imported patch legacy JDK-8193209-branch
authorjlaskey
Thu, 29 Aug 2019 11:33:26 -0300
branchJDK-8193209-branch
changeset 57940 7e791393cc4d
parent 57684 7cb325557832
child 59080 1b314be4feb2
imported patch legacy
src/java.base/share/classes/java/util/random/RandomGenerator.java
src/java.base/share/classes/module-info.java
--- a/src/java.base/share/classes/java/util/random/RandomGenerator.java	Thu Aug 08 11:06:54 2019 -0300
+++ b/src/java.base/share/classes/java/util/random/RandomGenerator.java	Thu Aug 29 11:33:26 2019 -0300
@@ -131,6 +131,16 @@
          */
         MRG32k3a("MRG32k3a"),
         /**
+         * Legacy Random algorithm
+         */
+        @Deprecated
+        Random("Random"),
+        /**
+         * Legacy SecureRandom algorithm
+         */
+        @Deprecated
+        SecureRandom("SecureRandom"),
+        /**
          * Xoroshiro128Plus algorithm
          */
         Xoroshiro128Plus("Xoroshiro128Plus"),
--- a/src/java.base/share/classes/module-info.java	Thu Aug 08 11:06:54 2019 -0300
+++ b/src/java.base/share/classes/module-info.java	Thu Aug 29 11:33:26 2019 -0300
@@ -376,6 +376,8 @@
         jdk.internal.jrtfs.JrtFileSystemProvider;
 
     provides java.util.random.RandomGenerator with
+        java.security.SecureRandom,
+        java.util.Random,
         java.util.random.L128X256MixRandom,
         java.util.random.L32X64MixRandom,
         java.util.random.L64X1024MixRandom,