
com.braintreegateway.encryption.Random Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of encryption Show documentation
Show all versions of encryption Show documentation
Client side encryption for Braintree integrations on Android.
package com.braintreegateway.encryption;
import java.security.SecureRandom;
public final class Random {
public static byte[] secureRandomBytes(int size) {
PRNGFixes.apply();
SecureRandom random = new SecureRandom();
byte[] keyBytes = new byte[size];
random.nextBytes(keyBytes);
return keyBytes;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy