diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/PackInserterTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/PackInserterTest.java index b782ce87f..8e438bc0e 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/PackInserterTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/PackInserterTest.java @@ -95,6 +95,8 @@ public class PackInserterTest extends RepositoryTestCase { private WindowCacheConfig origWindowCacheConfig; + private static final Random random = new Random(0); + @Before public void setWindowCacheConfig() { origWindowCacheConfig = new WindowCacheConfig(); @@ -518,7 +520,7 @@ private PackInserter newInserter() { private static byte[] newLargeBlob() { byte[] blob = new byte[10240]; - new Random(0).nextBytes(blob); + random.nextBytes(blob); return blob; }