Skip to content

Commit 65a004f

Browse files
committedNov 11, 2017
Use obscured urandom path to avoid JDK trickery.
See https://bugs.openjdk.java.net/browse/JDK-6202721
1 parent adfd1b3 commit 65a004f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

Diff for: ‎bin/jruby.bash

+3-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ fi
181181
JAVA_ENCODING=""
182182

183183
if [ -e "/dev/urandom" ]; then
184-
JAVA_SECURITY_EGD="/dev/urandom"
184+
# OpenJDK tries really hard to prevent you from using urandom.
185+
# See https://bugs.openjdk.java.net/browse/JDK-6202721
186+
JAVA_SECURITY_EGD="/dev/./urandom"
185187
fi
186188

187189
declare -a java_args

0 commit comments

Comments
 (0)
Please sign in to comment.