src/java.base/share/classes/java/security/SecureRandom.java
branchJDK-8193209-branch
changeset 57437 f02ffcb61dce
parent 53018 8bf9268df0e2
child 57547 56cbdc3ea079
equal deleted inserted replaced
57436:b0c958c0e6c6 57437:f02ffcb61dce
    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.RandomNumberGenerator;
    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.util.Debug;
    35 import sun.security.util.Debug;
    36 
    36 
    37 /**
    37 /**
  1021                 secureRandomSpi.engineReseed(params);
  1021                 secureRandomSpi.engineReseed(params);
  1022             }
  1022             }
  1023         }
  1023         }
  1024     }
  1024     }
  1025 
  1025 
       
  1026     /**
       
  1027      * Returns the period of this random number generator.
       
  1028      *
       
  1029      * @return the period of this random number generator.
       
  1030      */
       
  1031     @Override
       
  1032     public BigInteger period() {
       
  1033         return RandomNumberGenerator.HUGE_PERIOD;
       
  1034     }
       
  1035 
  1026     // Declare serialVersionUID to be compatible with JDK1.1
  1036     // Declare serialVersionUID to be compatible with JDK1.1
  1027     static final long serialVersionUID = 4940670005562187L;
  1037     static final long serialVersionUID = 4940670005562187L;
  1028 
  1038 
  1029     // Retain unused values serialized from JDK1.1
  1039     // Retain unused values serialized from JDK1.1
  1030     /**
  1040     /**