All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----java.util.Random | +----is.logi.crypto.random.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)
r
All Packages Class Hierarchy This Package Previous Next Index