Module: ActiveGraph::SecureRandomExt

Defined in:
lib/active_graph/secure_random_ext.rb

Instance Method Summary collapse

Instance Method Details

#hex(n = nil) ⇒ Object



5
6
7
# File 'lib/active_graph/secure_random_ext.rb', line 5

def hex(n = nil)
  super.force_encoding(Encoding::UTF_8)
end

#uuidObject



9
10
11
# File 'lib/active_graph/secure_random_ext.rb', line 9

def uuid
  super.force_encoding(Encoding::UTF_8)
end