class SecureRandomTest
Public Instance Methods
test_base58()
click to toggle source
# File activesupport/test/core_ext/secure_random_test.rb, line 7 def test_base58 s1 = SecureRandom.base58 s2 = SecureRandom.base58 assert_not_equal s1, s2 assert_equal 16, s1.length end
test_base58_with_length()
click to toggle source
# File activesupport/test/core_ext/secure_random_test.rb, line 15 def test_base58_with_length s1 = SecureRandom.base58(24) s2 = SecureRandom.base58(24) assert_not_equal s1, s2 assert_equal 24, s1.length end