Class UnixEntropyApi


  • public class UnixEntropyApi
    extends java.lang.Object
    Access to cryptographically secure entropy on some UNIX systems (BSD, Linux).
    • Constructor Summary

      Constructors 
      Constructor Description
      UnixEntropyApi()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] getEntropy​(int numbytes)
      Gets random numbers from UNIX syscall.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UnixEntropyApi

        public UnixEntropyApi()
    • Method Detail

      • 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.