Update rails api usage
Use SecureRandom, ActiveSupport::SecureRandom is deperated