forked from I2P_Developers/i2p.i2p
volatile
This commit is contained in:
@@ -47,7 +47,7 @@ import net.i2p.util.SecureDirectory;
|
|||||||
public class Daemon {
|
public class Daemon {
|
||||||
public static final String VERSION = "2.0.4";
|
public static final String VERSION = "2.0.4";
|
||||||
private static final Daemon _instance = new Daemon();
|
private static final Daemon _instance = new Daemon();
|
||||||
private boolean _running;
|
private volatile boolean _running;
|
||||||
private static final boolean DEBUG = false;
|
private static final boolean DEBUG = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -58,10 +58,10 @@ public abstract class BasePRNGStandalone implements IRandomStandalone {
|
|||||||
protected final String name;
|
protected final String name;
|
||||||
|
|
||||||
/** Indicate if this instance has already been initialised or not. */
|
/** Indicate if this instance has already been initialised or not. */
|
||||||
protected boolean initialised;
|
protected volatile boolean initialised;
|
||||||
|
|
||||||
/** A temporary buffer to serve random bytes. */
|
/** 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. */
|
/** The index into buffer of where the next byte will come from. */
|
||||||
protected int ndx;
|
protected int ndx;
|
||||||
|
Reference in New Issue
Block a user