diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-08-28 14:14:11 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-08-28 14:14:11 +0000 |
| commit | aed6bddf4e79cdd14e82841d9b533d989d4f6f84 (patch) | |
| tree | 09692f360f32ef7d36ba22a4008a9455829343d7 /lib/cgi | |
| parent | b7d3ec8c24a4f450b8892e2a7021771548aa6b08 (diff) | |
| download | ruby-aed6bddf4e79cdd14e82841d9b533d989d4f6f84.tar.gz ruby-aed6bddf4e79cdd14e82841d9b533d989d4f6f84.tar.xz ruby-aed6bddf4e79cdd14e82841d9b533d989d4f6f84.zip | |
* bignum.c (rb_big_and): protect parameters from GC.
[ruby-talk:110664]
* error.c (exc_equal): exceptions are equal if they share same
class, message and backtrace. [ruby-talk:110354]
* error.c (name_err_mesg_equal): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi')
| -rw-r--r-- | lib/cgi/session.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/cgi/session.rb b/lib/cgi/session.rb index c320ac9c4..9a49fdedc 100644 --- a/lib/cgi/session.rb +++ b/lib/cgi/session.rb @@ -173,7 +173,9 @@ class CGI def Session::create_new_id require 'digest/md5' md5 = Digest::MD5::new - md5.update(String(Time::now)) + now = Time::now + md5.update(now.to_s) + md5.update(String(now.usec)) md5.update(String(rand(0))) md5.update(String($$)) md5.update('foobar') |
