summaryrefslogtreecommitdiff
path: root/lib/cgi/session.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-10 01:42:51 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-10 01:42:51 +0000
commit52ec7cc543605ccb43e883c2a89f4a90e8cb67c9 (patch)
tree274c77a1fb83aab53bd048cb1b38f8aa5cf6bdd2 /lib/cgi/session.rb
parente3dbf4cebdb44778d454750a98155002b7142b3a (diff)
* lib/securerandom.rb: renamed from lib/secrand.rb.
suggested by NaHi. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi/session.rb')
-rw-r--r--lib/cgi/session.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cgi/session.rb b/lib/cgi/session.rb
index 7539be37c3..8a6ba24c2c 100644
--- a/lib/cgi/session.rb
+++ b/lib/cgi/session.rb
@@ -174,9 +174,9 @@ class CGI
# is used internally for automatically generated
# session ids.
def create_new_id
- require 'secrand'
+ require 'securerandom'
begin
- session_id = SecRand.hex(16)
+ session_id = SecureRandom.hex(16)
rescue NotImplementedError
require 'digest/md5'
md5 = Digest::MD5::new