Skip to content

Commit

Permalink
Fixes issue with @RandomRule.Seed in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tinwelint authored and burqen committed Feb 18, 2019
1 parent 201ce6b commit b49225e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ protected RandomRule createField( ExtensionContext extensionContext )
{
RandomRule randomRule = new RandomRule();
randomRule.setSeed( System.currentTimeMillis() );
randomRule.reset();
return randomRule;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ public void evaluate() throws Throwable
{
setSeed( globalSeed );
}
reset();
try
{
base.evaluate();
Expand Down Expand Up @@ -316,6 +315,7 @@ public RandomValues randomValues()
public void setSeed( long seed )
{
this.seed = seed;
reset();
}

@Retention( RetentionPolicy.RUNTIME )
Expand Down

0 comments on commit b49225e

Please sign in to comment.