/* VMSecureRandom.java -- random seed generator.
- Copyright (C) 2006 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2010 Free Software Foundation, Inc.
This file is a part of GNU Classpath.
final class VMSecureRandom
{
+ private VMSecureRandom() {} // Prohibits instantiation.
+
/**
* Generate a random seed. Implementations are free to generate
* fewer random bytes than are requested, and leave the remaining
return length;
}
- static class Spinner implements Runnable
+ static class Spinner
+ implements Runnable
{
volatile byte value;
volatile boolean running;
value++;
}
- private void stop()
+ void stop()
{
running = false;
}