tuweni / org.apache.tuweni.crypto.sodium / KeyDerivation / MasterKey / random

random

static fun random(): MasterKey! (source)

Generate a new key using a random generator.

Exceptions

UnsupportedOperationException - If key derivation support is not available.

Return
MasterKey!: A randomly generated key.