ISAACProvider.java 685 B

1234567891011121314151617181920212223242526
  1. package com.oblivm.backend.rand;
  2. /**
  3. * @author Daniel Berlin
  4. */
  5. public final class ISAACProvider extends java.security.Provider {
  6. /**
  7. *
  8. */
  9. private static final long serialVersionUID = 1L;
  10. public static final String NAME = "ISAACProvider";
  11. public static final double VERSION = 0.3;
  12. public static final String INFO = "Provider for the ISAAC PRNG";
  13. @SuppressWarnings({ "unchecked", "rawtypes" })
  14. public ISAACProvider() {
  15. super(NAME, VERSION, INFO);
  16. java.security.AccessController.doPrivileged(new java.security.PrivilegedAction() {
  17. public Object run() {
  18. put("SecureRandom.ISAACRandom", "com.oblivm.backend.rand.ISAACEngine");
  19. return (null);
  20. }
  21. });
  22. }
  23. }