Package org.apache.myfaces.util.lang
Class ThreadsafeXorShiftRandom
- java.lang.Object
- 
- org.apache.myfaces.util.lang.XorShiftRandom
- 
- org.apache.myfaces.util.lang.ThreadsafeXorShiftRandom
 
 
- 
 public class ThreadsafeXorShiftRandom extends XorShiftRandom A threadsafe implementation ofXorShiftRandom. We use a ThreadLocal to give each thread it's own implementation.
- 
- 
Constructor SummaryConstructors Constructor Description ThreadsafeXorShiftRandom()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description longrandom()We use the random generator for this very thread.- 
Methods inherited from class org.apache.myfaces.util.lang.XorShiftRandomrandom
 
- 
 
- 
- 
- 
Method Detail- 
randompublic long random() We use the random generator for this very thread. This method is perfectly threadsafe. It is also guaranteed that each thread will get own values.- Overrides:
- randomin class- XorShiftRandom
- Returns:
 
 
- 
 
-