Replace rand() with SecureRandom.random_number()
Backward compatibility for SecureRandom

Ruby >= 1.8.7 should support SecureRandom
http://www.rubyinside.com/ruby-187-released-912.html
Merge pull request #1 from dusk0r/master

Replace rand() with SecureRandom.random_number()