mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-05-24 14:35:26 +00:00
volatile
This commit is contained in:
@@ -58,10 +58,10 @@ public abstract class BasePRNGStandalone implements IRandomStandalone {
|
||||
protected final String name;
|
||||
|
||||
/** Indicate if this instance has already been initialised or not. */
|
||||
protected boolean initialised;
|
||||
protected volatile boolean initialised;
|
||||
|
||||
/** A temporary buffer to serve random bytes. */
|
||||
protected byte[] buffer;
|
||||
protected volatile byte[] buffer;
|
||||
|
||||
/** The index into buffer of where the next byte will come from. */
|
||||
protected int ndx;
|
||||
|
||||
Reference in New Issue
Block a user