tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Saegesser" <marc.saeges...@apropos.com>
Subject [PATCH] Initialize SessionIdGenerator PRNG
Date Mon, 11 Dec 2000 20:47:49 GMT
Attached are patches to StandardManager.java and SessionIdGenerator.java.
These changes cause the PRNG used to generate session ids to be initialized
when a context is initialized instead of when the first session id is
generated.  The PRNG used by default in 3.2 (java.security.SecureRandom)
takes a rather long time to return its first random number (about 10-15
seconds on my hardware).  I think it makes more sense for the time consuming
initialization stuff to happen when TC starts rather then when requests are
being handled.

Mime
View raw message