Package org.eclipse.jgit.junit
Class TestRng
- java.lang.Object
-
- org.eclipse.jgit.junit.TestRng
-
public class TestRng extends java.lang.ObjectToy RNG to ensure we get predictable numbers during unit tests.
-
-
Field Summary
Fields Modifier and Type Field Description private intnext
-
Constructor Summary
Constructors Constructor Description TestRng(java.lang.String seed)Create a new random number generator, seeded by a string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]nextBytes(int cnt)Get the nextcntbytes of random data.intnextInt()Next int
-