Package org.eclipse.jgit.junit
Class TestRng
- java.lang.Object
-
- org.eclipse.jgit.junit.TestRng
-
public class TestRng extends Object
Toy RNG to ensure we get predictable numbers during unit tests.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
nextBytes(int cnt)
Get the nextcnt
bytes of random data.int
nextInt()
Next int
-
-
-
Constructor Detail
-
TestRng
public TestRng(String seed)
Create a new random number generator, seeded by a string.- Parameters:
seed
- seed to bootstrap, usually this is the test method name.
-
-