summaryrefslogtreecommitdiffstats
path: root/libjava/classpath/vm/reference/java/security/VMSecureRandom.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/vm/reference/java/security/VMSecureRandom.java')
-rw-r--r--libjava/classpath/vm/reference/java/security/VMSecureRandom.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/libjava/classpath/vm/reference/java/security/VMSecureRandom.java b/libjava/classpath/vm/reference/java/security/VMSecureRandom.java
index bea15497762..0a438455778 100644
--- a/libjava/classpath/vm/reference/java/security/VMSecureRandom.java
+++ b/libjava/classpath/vm/reference/java/security/VMSecureRandom.java
@@ -1,5 +1,5 @@
/* 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.
@@ -55,6 +55,8 @@ package java.security;
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
@@ -104,7 +106,8 @@ final class VMSecureRandom
return length;
}
- static class Spinner implements Runnable
+ static class Spinner
+ implements Runnable
{
volatile byte value;
volatile boolean running;
@@ -121,7 +124,7 @@ final class VMSecureRandom
value++;
}
- private void stop()
+ void stop()
{
running = false;
}
OpenPOWER on IntegriCloud