All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bloxbean.cardano.client.crypto.bip39.DefaultEntropyProviderImpl Maven / Gradle / Ivy

There is a newer version: 0.6.2
Show newest version
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