com.bloxbean.cardano.client.crypto.bip39.DefaultEntropyProviderImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cardano-client-crypto Show documentation
Show all versions of cardano-client-crypto Show documentation
Cardano Client Lib - Crypto Implementations
package com.bloxbean.cardano.client.crypto.bip39;
import com.bloxbean.cardano.client.crypto.bip39.api.EntropyProvider;
import java.security.SecureRandom;
public class DefaultEntropyProviderImpl implements EntropyProvider {
@Override
public byte[] generateRandom(int byteLength) {
byte[] entropy = new byte[byteLength];
new SecureRandom().nextBytes(entropy);
return entropy;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy