lib/rack/session/memcache.rb in rack-0.4.0 vs lib/rack/session/memcache.rb in rack-0.9.0
- old
+ new
@@ -43,10 +43,10 @@
session = {}
lc = 0
@mutex.synchronize do
begin
raise RuntimeError, 'Unique id finding looping excessively' if (lc+=1) > 1000
- sid = "%08x" % rand(0xffffffff)
+ sid = generate_sid
ret = @pool.add(sid, session)
end until /^STORED/ =~ ret
end
end
class << session