Commit b0e95aeb authored by Daniel Le Berre's avatar Daniel Le Berre

Allow non deterministic behavior.

parent 0e6a8142
......@@ -56,7 +56,9 @@ public final class RandomLiteralSelectionStrategy
/**
* @since 2.2
*/
public static final Random RAND = new Random(123456789);
public static final Random RAND = System
.getProperty("NONDETERMINISTIC") == null ? new Random(123456789)
: new Random();
public void assignLiteral(int p) {
}
......
......@@ -53,7 +53,9 @@ public class RandomWalkDecorator implements IOrder, Serializable {
private double p;
private static final Random RAND = new Random(123456789);
private static final Random RAND = System
.getProperty("NONDETERMINISTIC") == null ? new Random(123456789)
: new Random();
private ILits voc;
private int nbRandomWalks;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment