I am using Ruby 1.9.3 and using the following
puts SecureRandom.uuid
but I received the error
uninitialized constant SecureRandom
How to fix this issue?
You need to add a require
statement in the beginning of the file:
require 'securerandom'
You need to require ruby library of securerandom to run this method
require 'securerandom'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With