Package com.helger.commons.random
Class RandomHelper
- java.lang.Object
-
- com.helger.commons.random.RandomHelper
-
@Immutable @Deprecated public final class RandomHelper extends Object
Deprecated.A helper class that centrally works around the issue of slowSecureRandomimplementations on certain platforms in certain constellations (usually on Linux with JDK 6). This class centrally allows to decide betweenVerySecureRandomand regularRandom.- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static RandomgetRandom()Deprecated.static SecureRandomgetSecureRandom()Deprecated.static booleanisUseSecureRandom()Deprecated.static voidsetUseSecureRandom(boolean bUseSecureRandom)Deprecated.
-
-
-
Method Detail
-
setUseSecureRandom
public static void setUseSecureRandom(boolean bUseSecureRandom)
Deprecated.
-
isUseSecureRandom
public static boolean isUseSecureRandom()
Deprecated.
-
getRandom
@Nonnull public static Random getRandom()
Deprecated.- Returns:
- Either a
SecureRandom(if enabled) or a regularRandom. Nevernull. - See Also:
isUseSecureRandom()
-
getSecureRandom
@Nullable public static SecureRandom getSecureRandom()
Deprecated.- Returns:
- Either a
SecureRandom(if enabled) ornull. - See Also:
isUseSecureRandom()
-
-