Forum: JRuby SecureRandom hangs jruby 1.7.12

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
F48118fe74b0c7f6fd82a0ee422fa34e?d=identicon&s=25 snacktime (Guest)
on 2014-06-19 02:04
(Received via mailing list)
So I use Sinatra which uses the securerandom gem.  Been using it under
vmware/ubuntu 12 for a while and went to run my app on Digitalocean, and
sinatra wouldn't start.

doing a require sinatra would hang irb had to CTRL-Z to get out.

Tracked it down to the call to SecureRandom.hex().

I'm guessing this is  some bad interaction when running under KVM
 That's what digitalocean uses. Been running the same app with same
gems under vmware and it works fine.  Only other difference is that I
ubuntu 12 at home and on digitalocean I used 14.

F48118fe74b0c7f6fd82a0ee422fa34e?d=identicon&s=25 snacktime (Guest)
on 2014-06-25 00:48
(Received via mailing list)
This is a big enough issue now that bundle install hangs completely on
guests with some gems.  I didn't bother to track down which ones were
it this time, as it would just be a never ending battle that I don't
to fight.

The workaround is to comment out this entry in

This topic is locked and can not be replied to.