mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 08:42:58 +00:00
Fortuna: Add getByte() method
This commit is contained in:
1 parent
e2b7f504b0
commit
ca00ea7a76
3 files changed
+17
-2
No files matched your search
@@ -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