Algorithm Property
The random number algorithm.
Syntax
public int getAlgorithm(); public void setAlgorithm(int algorithm);
Enumerated values: public final static int raISAAC = 0; public final static int raMSCryptoAPI = 1; public final static int raPlatform = 2; public final static int raSecurePlatform = 3; public final static int raRC4Random = 4;
Remarks
This property specifies the algorithm used to generate the random number or bytes. Possible values are:
0 (raISAAC) | ISAAC (indirection, shift, accumulate, add, and count) |
1 (raMSCryptoAPI) | The Microsoft Crypto API. This is only available on Windows. |
2 (raPlatform) | The platform's random implementation. |
3 (raSecurePlatform) | The platform's secure random implementation. This is only applicable in .NET and Java. In .NET the bean uses the "RNGCryptoServiceProvider" class. In Java the bean uses the "SecureRandom" class. |
4 (raRC4Random) | RC4 based random implementation. |
Default Value
0