jdk/src/share/classes/com/sun/crypto/provider/DHParameterGenerator.java
changeset 15010 ec6b49ce42b1
parent 13672 604588823b5a
child 16909 78a1749a43e2
equal deleted inserted replaced
15009:bcb241432928 15010:ec6b49ce42b1
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   129         if (this.exponentSize == 0) {
   129         if (this.exponentSize == 0) {
   130             this.exponentSize = this.primeSize - 1;
   130             this.exponentSize = this.primeSize - 1;
   131         }
   131         }
   132 
   132 
   133         if (this.random == null)
   133         if (this.random == null)
   134             this.random = SunJCE.RANDOM;
   134             this.random = SunJCE.getRandom();
   135 
   135 
   136         try {
   136         try {
   137             AlgorithmParameterGenerator paramGen;
   137             AlgorithmParameterGenerator paramGen;
   138             DSAParameterSpec dsaParamSpec;
   138             DSAParameterSpec dsaParamSpec;
   139 
   139