Package jadex.ipc.impl.security
Class UnixEntropyApi
java.lang.Object
jadex.ipc.impl.security.UnixEntropyApi
Access to cryptographically secure entropy on some UNIX systems (BSD, Linux).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
getEntropy
(int numbytes) Gets random numbers from UNIX syscall.
-
Constructor Details
-
UnixEntropyApi
public UnixEntropyApi()
-
-
Method Details
-
getEntropy
public static byte[] getEntropy(int numbytes) Gets random numbers from UNIX syscall.- Parameters:
numBytes
- Number of bytes requested.- Returns:
- Random data, null on failure.
-