JRuby uses Java's java.security.SecureRandom, which (by default on OpenJDK 8) uses /dev/random, mixed with its own SHA1PRNG (this so setSeed() can be guaranteed to actually do something).
Rubinius copies MRI circa 2014 via rubysl - https://github.com/rubysl/rubysl-securerandom