Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

gnu.javax.crypto.prng
Class CSPRNG.Spinner  view CSPRNG.Spinner download CSPRNG.Spinner.java

java.lang.Object
  extended bygnu.javax.crypto.prng.CSPRNG.Spinner
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
CSPRNG

private static class CSPRNG.Spinner
extends java.lang.Object
implements java.lang.Runnable

A simple thread that constantly updates a byte counter. This class is used in a group of lowest-priority threads and the values of their counters (updated in competition with all other threads) is used as a source of entropy bits.


Field Summary
private  byte counter
           
 
Constructor Summary
private CSPRNG.Spinner()
           
 
Method Summary
 void run()
          This method will be called by whoever wishes to run your class implementing Runnable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

counter

private byte counter
Constructor Detail

CSPRNG.Spinner

private CSPRNG.Spinner()
Method Detail

run

public void run()
Description copied from interface: java.lang.Runnable
This method will be called by whoever wishes to run your class implementing Runnable. Note that there are no restrictions on what you are allowed to do in the run method, except that you cannot throw a checked exception.

Specified by:
run in interface java.lang.Runnable