|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.common.FastRandomSeedGenerator
public class FastRandomSeedGenerator
Implements an uncommons math compatible generator that avoids /dev/random's tendency to block due to entropy underflow.
Constructor Summary | |
---|---|
FastRandomSeedGenerator()
|
Method Summary | |
---|---|
byte[] |
generateSeed(int length)
Generate a seed value for a random number generator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FastRandomSeedGenerator()
Method Detail |
---|
public byte[] generateSeed(int length) throws org.uncommons.maths.random.SeedException
generateSeed
in interface org.uncommons.maths.random.SeedGenerator
length
- The length of the seed to generate (in bytes).
org.uncommons.maths.random.SeedException
- If a seed cannot be generated for any reason.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |