forked from I2P_Developers/i2p.i2p
Fortuna: Add getByte() method
This commit is contained in:
@@ -183,6 +183,17 @@ public class FortunaRandomSource extends RandomSource implements EntropyHarveste
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Not part of java.util.SecureRandom, but added for efficiency, since Fortuna supports it.
|
||||
*
|
||||
* @since 0.9.24
|
||||
*/
|
||||
public byte nextByte() {
|
||||
synchronized(_fortuna) {
|
||||
return _fortuna.nextByte();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation from sun's java.util.Random javadocs
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user