Casey Marshall wrote: > This patch implements seeding of all SecureRandom instances if you > call `nextBytes' without providing a seed yourself, and provides a > better implementation of the static `getSeed' method. > > This introduces a new VM class, `java.security.VMSecureRandom,' that > contains a single static method for generating real (or close to > real) random seed values. The default implementation uses a set of > eight "dueling" threads, each of which increments a counter in a > tight loop.
I like this approach (as a default). + private byte value; + private boolean running; For it to work consistently on all VMs both the "value" and "running" field in Spinner must be marked volatile. Thanks, Jeroen