Closed GoogleCodeExporter closed 9 years ago
Hi,
I think not having a 'true' random seed is a problem, and using the alternative
algorithm should not be the only way. So starting the thread (at least trying
to get
a real random seed) is important for security. You wrote: "The easiest fix
would be
to add "t.setDaemon(true)" to this thread". Does this actually work? If yes I
think
this would be the best solution (even if it's a bit ugly, I agree).
Original comment by thomas.t...@gmail.com
on 27 Feb 2008 at 5:13
Hi,
"I think not having a 'true' random seed is a problem". Yes, you're definitely
right.
Adding "t.setDaemon(true)" does fix the problem - I tested it out on the machine
causing the problems. The reason is that it "Marks this thread as either a
daemon
thread" and since "The Java Virtual Machine exits when the only threads running
are
all daemon threads" this thread will not cause the JVM to hang even if it is
still
running when we try to shutdown an embedded database and exit.
In retrospect I guess it's not really a terrible solution. In particular, this
will
still ensure the highest level of security possible for each machine on which
SecureRandom.generateSeed(20) is working fine.
Original comment by matthew....@gmail.com
on 27 Feb 2008 at 2:24
It is committed in the trunk and will be included in the next release (in about
two
weeks).
Original comment by thomas.t...@gmail.com
on 28 Feb 2008 at 7:07
Wow! That was quick. Thanks a lot!
Original comment by matthew....@gmail.com
on 3 Mar 2008 at 2:29
Fixed in version 1.0.68
Original comment by thomas.t...@gmail.com
on 15 Mar 2008 at 11:19
Original issue reported on code.google.com by
matthew....@gmail.com
on 26 Feb 2008 at 8:49