Skip to content

Commit

Permalink
[Misc] fix SplittableRandomTest.java intermittently timeout
Browse files Browse the repository at this point in the history
Summary: fix jdk/test/java/util/SplittableRandom/SplittableRandomTest.java intermittently fail, use /dev/urandom instead of /dev/random to avoid block for SecureRandom API

Test Plan: CI pipeline

Reviewed-by: lvfei.lv, lei.yul

Issue: #428
  • Loading branch information
sendaoYan committed Nov 4, 2022
1 parent 03bd4cc commit 77f1417
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jdk/test/java/util/SplittableRandom/SplittableRandomTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@

/**
* @test
* @run testng SplittableRandomTest
* @run testng/othervm -Djava.util.secureRandomSeed=true SplittableRandomTest
* @run testng/othervm -Djava.security.egd=file:/dev/urandom SplittableRandomTest
* @run testng/othervm -Djava.security.egd=file:/dev/urandom -Djava.util.secureRandomSeed=true SplittableRandomTest
* @summary test methods on SplittableRandom
* @key randomness
*/
Expand Down

0 comments on commit 77f1417

Please sign in to comment.