Skip to content

Commit

Permalink
TestKit: allow to set seed for random walker #433
Browse files Browse the repository at this point in the history
  • Loading branch information
remmeier committed Nov 6, 2019
1 parent 1fa9e05 commit c3e1c5b
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ public RandomWalkLinkChecker(HttpAdapter httpAdapter) {
this.httpAdapter = httpAdapter;
}

/**
* @param seed for randomness to gain determinism.
*/
public void setSeed(long seed) {
random.setSeed(seed);
}

public void addStartUrl(String url) {
upcoming.add(url);
}
Expand Down

0 comments on commit c3e1c5b

Please sign in to comment.