diff options
Diffstat (limited to 'lib/cgi')
-rw-r--r-- | lib/cgi/session.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cgi/session.rb b/lib/cgi/session.rb index bd087bb5ea..eb8f0cbaf6 100644 --- a/lib/cgi/session.rb +++ b/lib/cgi/session.rb @@ -17,8 +17,8 @@ class CGI end def Session::create_new_id - require 'md5' - md5 = MD5::new + require 'digest/md5' + md5 = Digest::MD5::new md5.update(String(Time::now)) md5.update(String(rand(0))) md5.update(String($$)) |