Skip to content

Commit

Permalink
we (still) should not break older JRubies we test against on CI (in 0…
Browse files Browse the repository at this point in the history
….9.x)
kares committed Jul 25, 2017
1 parent d5d3877 commit df0b4e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/jruby/ext/openssl/Random.java
Original file line number Diff line number Diff line change
@@ -68,6 +68,9 @@ private static Holder createHolderImpl() {
if (HOLDER_TYPE.equals("strong")) {
return new StrongHolder();
}
if (ThreadLocalHolder.secureRandomField == null) {
return new SharedHolder(); // fall-back on (older) JRuby <= 1.7.4
}
return new ThreadLocalHolder();
}

0 comments on commit df0b4e3

Please sign in to comment.