Skip to content

Instantly share code, notes, and snippets.

@luckyruby
Created April 13, 2012 17:35
Show Gist options
  • Save luckyruby/2378631 to your computer and use it in GitHub Desktop.
Save luckyruby/2378631 to your computer and use it in GitHub Desktop.
jruby-1.6.7 :001 > require 'securerandom'
=> true
jruby-1.6.7 :002 > SecureRandom.uuid
NoMethodError: undefined method `uuid' for SecureRandom:Module
from (irb):2:in `evaluate'
from org/jruby/RubyKernel.java:1083:in `eval'
from /home/deployer/.rvm/rubies/jruby-1.6.7/lib/ruby/1.8/irb.rb:158:in `eval_input'
from /home/deployer/.rvm/rubies/jruby-1.6.7/lib/ruby/1.8/irb.rb:271:in `signal_status'
from /home/deployer/.rvm/rubies/jruby-1.6.7/lib/ruby/1.8/irb.rb:155:in `eval_input'
from org/jruby/RubyKernel.java:1410:in `loop'
from org/jruby/RubyKernel.java:1183:in `catch'
from /home/deployer/.rvm/rubies/jruby-1.6.7/lib/ruby/1.8/irb.rb:154:in `eval_input'
from /home/deployer/.rvm/rubies/jruby-1.6.7/lib/ruby/1.8/irb.rb:71:in `start'
from org/jruby/RubyKernel.java:1183:in `catch'
from /home/deployer/.rvm/rubies/jruby-1.6.7/lib/ruby/1.8/irb.rb:70:in `start'
from /home/deployer/.rvm/rubies/jruby-1.6.7/bin/irb:17:in `(root)'
1.9.3p125 :001 > require 'securerandom'
=> true
1.9.3p125 :002 > SecureRandom.uuid
=> "d38a3dbb-634e-4f45-94b3-9d5b83930cbe"
1.9.3p125 :003 >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment