Backward compatibility for SecureRandom

Ruby >= 1.8.7 should support SecureRandom
http://www.rubyinside.com/ruby-187-released-912.html