All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----java.util.Random
|
+----is.hi.logir.cryptonite.RandomFromReader
This class is useful f.ex. for reding random bits from the
/dev/random or /dev/urandom deviced in
linux. This would be done with the following code:
Random rand;
try {
rand=new RandomFromReader(new FileReader("/dev/random"));
} catch (FileNotFoundException e) {
rand=new RandomSpinner();
}
public RandomFromReader(Reader r)
All Packages Class Hierarchy This Package Previous Next Index