Class UnixEntropyApi

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

      Constructor Description
    • 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.
        numBytes - Number of bytes requested.
        Random data, null on failure.