summaryrefslogtreecommitdiff
path: root/lib/cgi/session.rb
diff options
context:
space:
mode:
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