tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From franckie frank <francki...@gmail.com>
Subject Re: How to configure USE_SECURE_RANDOM_FOR_UUID?
Date Tue, 14 Jun 2011 07:19:51 GMT
Honestly, I was simply curious why the cryptographically secure generation
of random unique ids (through java.security.SecureRandom API)  is disabled
by default.

And It was unclear to me if it is at all possible to change the default
behavior.
Thanks,
Franckie14

2011/6/14 Mark Thomas <markt@apache.org>

> On 13/06/2011 22:43, Christopher Schultz wrote:
> > Frank,
> >
> > On 6/13/2011 11:46 AM, franckie frank wrote:
> >> I ve noticed that in Tomcat 7.0.14 s
> >> org.apache.catalina.tribes.io.ChannelData there is public static field
> >
> >> 'public static volatile boolean USE_SECURE_RANDOM_FOR_UUID'.
> >
> >> and it seems to be used only once in the same class. By default its
> value is
> >> false.
> >
> >> Do you know if there is a way to change/configure its value?
> >
> > How about:
> >
> > import org.apache.catalina.tribes.io.ChannelData;
> >
> > ...
> >
> >    ChannelData.USE_SECURE_RANDOM_FOR_UUID = true;
>
> But that begs the questions, why would you want to?
>
> Mark
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message