equal
deleted
inserted
replaced
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 |
25 |
26 package java.security; |
26 package java.security; |
27 |
27 |
|
28 import java.math.BigInteger; |
28 import java.util.*; |
29 import java.util.*; |
|
30 import java.util.random.RandomGenerator; |
29 import java.util.regex.*; |
31 import java.util.regex.*; |
30 |
|
31 import java.security.Provider.Service; |
32 import java.security.Provider.Service; |
32 |
|
33 import sun.security.jca.*; |
33 import sun.security.jca.*; |
34 import sun.security.jca.GetInstance.Instance; |
34 import sun.security.jca.GetInstance.Instance; |
35 import sun.security.provider.SunEntries; |
35 import sun.security.provider.SunEntries; |
36 import sun.security.util.Debug; |
36 import sun.security.util.Debug; |
37 |
37 |
1029 secureRandomSpi.engineReseed(params); |
1029 secureRandomSpi.engineReseed(params); |
1030 } |
1030 } |
1031 } |
1031 } |
1032 } |
1032 } |
1033 |
1033 |
|
1034 /** |
|
1035 * Returns the period of this random number generator. |
|
1036 * |
|
1037 * @return the period of this random number generator. |
|
1038 */ |
|
1039 @Override |
|
1040 public BigInteger period() { |
|
1041 return RandomGenerator.HUGE_PERIOD; |
|
1042 } |
|
1043 |
1034 // Declare serialVersionUID to be compatible with JDK1.1 |
1044 // Declare serialVersionUID to be compatible with JDK1.1 |
1035 @java.io.Serial |
1045 @java.io.Serial |
1036 static final long serialVersionUID = 4940670005562187L; |
1046 static final long serialVersionUID = 4940670005562187L; |
1037 |
1047 |
1038 // Retain unused values serialized from JDK1.1 |
1048 // Retain unused values serialized from JDK1.1 |