Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] uuid generation (was Re: Scope of namespaces)

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Wolfgang Hoschek <wolfgang.hoschek AT mac.com>
  • To: Tatu Saloranta <cowtowncoder AT yahoo.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] uuid generation (was Re: Scope of namespaces)
  • Date: Tue, 7 Feb 2006 12:29:46 -0800

On Feb 7, 2006, at 12:19 PM, Tatu Saloranta wrote:

--- Steve Loughran <steve.loughran AT gmail.com> wrote:

On 2/7/06, Nils Kilden-Pedersen <nilskp AT gmail.com>
wrote:
On 2/7/06, Steve Loughran
<steve.loughran AT gmail.com> wrote:
...

The serialisation is in the generation of random nos
from the feed.

The static generator uses a shared random number
generator, of type
SecureRandom. If you follow its code:

synchronized public void nextBytes(byte[] bytes)
{
...
}

Ok. Fair enough. In practice the default SecureRandom
doesn't halt that long (at least it didn't last I
tried it... but I didn't run out of neutrinos ;) ).
But I guess there's one more potential reason not to
use Sun's impl then.

In JDK < 1.4 the default secure random config didn't delegate to dev/ random or equivalent, and initializing a new SecureRandom() would typically take several seconds. It's gotten much better since then. BTW, since we're already way off-topic anyway: This appeared to be the main reason it took ages to start up tomcat in https mode.

Wolfgang.




Archive powered by MHonArc 2.6.24.

Top of Page