
org.whispersystems.curve25519.JCESecureRandomProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of curve25519-java Show documentation
Show all versions of curve25519-java Show documentation
Curve25519 library for Java
The newest version!
/*
* Copyright (C) 2014-2016 Open Whisper Systems
*
* Licensed according to the LICENSE file in this repository.
*/
package org.whispersystems.curve25519;
import java.security.SecureRandom;
public class JCESecureRandomProvider implements SecureRandomProvider {
@Override
public void nextBytes(byte[] output) {
new SecureRandom().nextBytes(output);
}
@Override
public int nextInt(int maxValue) {
return new SecureRandom().nextInt(maxValue);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy