Updated from rand(1..56) to SecureRandom.random_number.