Search code examples
javarandomclojurecryptographydesktop-application

programmatically using Hardware Random number generator


I'm working on a desktop application and would love to use any hardware random number generators that happen to be available, though I don't want the user to have to do any confusing setup to use it. its Java/Clojure based so something in the java world would be nice though I'm willing to work with just about anything. Know of any programs that do this well? are they cross platform?


Solution

  • You should use the Java SecureRandom class. The user can override the default algorithm selection with a hardware RNG by setting its preference order. This then applies to all Java applications, including yours.