This sounds like a platform issue. SecureRandom requires a real seed and on BSD/Linux platforms, that is usually provided by /dev/random. If your instance doesn't have access to enough sources of entropy or if some other consumer is eating too many random bits, then /dev/random can hang.
On 11/19/07 10:30 AM, "Raghu Angadi" <[EMAIL PROTECTED]> wrote: > Do you know if this is a known issue with JVM and a bug is filed? > > 闫雪冰 wrote: ... >> I've written a little program on my box (running FreeBSD4.11-YAHOO-20070423, >> you might be familiar with , :P) to test the call to >> SecureRandom.getInstance("SHA1PRNG").nextInt, at which the program always >> hung up, and there was no any exception thrown.