Utils: Improve random seed initialization

Fallback to Random rather than try SecureRandom twice
Fetch from SecureRandom incrementally
Remove log warning
correction, this is just a simple javadoc fix, original changelog was a dup
This commit is contained in:
zzz
2016-07-09 21:07:31 +00:00
parent 896af2c5d2
commit 3baa08a3bb
2 changed files with 12 additions and 0 deletions

View File

@ -84,6 +84,8 @@ public interface I2PClient {
/** Create a new destination with the default certificate creation properties and store
* it, along with the private encryption and signing keys at the specified location
*
* Caller must close stream.
*
* @param destKeyStream create a new destination and write out the object to the given stream,
* formatted as Destination, PrivateKey, and SigningPrivateKey
* format is specified in {@link net.i2p.data.PrivateKeyFile PrivateKeyFile}
@ -97,6 +99,8 @@ public interface I2PClient {
* This is not bound to the I2PClient, you must supply the data back again
* in createSession().
*
* Caller must close stream.
*
* @param destKeyStream location to write out the destination, PrivateKey, and SigningPrivateKey,
* format is specified in {@link net.i2p.data.PrivateKeyFile PrivateKeyFile}
* @since 0.9.12
@ -106,6 +110,8 @@ public interface I2PClient {
/** Create a new destination with the given certificate and store it, along with the private
* encryption and signing keys at the specified location
*
* Caller must close stream.
*
* @param destKeyStream location to write out the destination, PrivateKey, and SigningPrivateKey,
* format is specified in {@link net.i2p.data.PrivateKeyFile PrivateKeyFile}
* @param cert certificate to tie to the destination

View File

@ -46,6 +46,8 @@ public class I2PClientImpl implements I2PClient {
* This is not bound to the I2PClient, you must supply the data back again
* in createSession().
*
* Caller must close stream.
*
* @param destKeyStream location to write out the destination, PrivateKey, and SigningPrivateKey,
* format is specified in {@link net.i2p.data.PrivateKeyFile PrivateKeyFile}
*/
@ -59,6 +61,8 @@ public class I2PClientImpl implements I2PClient {
* This is not bound to the I2PClient, you must supply the data back again
* in createSession().
*
* Caller must close stream.
*
* @param destKeyStream location to write out the destination, PrivateKey, and SigningPrivateKey,
* format is specified in {@link net.i2p.data.PrivateKeyFile PrivateKeyFile}
* @since 0.9.12
@ -82,6 +86,8 @@ public class I2PClientImpl implements I2PClient {
* The padding if any will be randomized. The extra key data if any will be set in the
* key cert.
*
* Caller must close stream.
*
* @param destKeyStream location to write out the destination, PrivateKey, and SigningPrivateKey,
* format is specified in {@link net.i2p.data.PrivateKeyFile PrivateKeyFile}
*/