tuweni / org.apache.tuweni.crypto.sodium / DiffieHelman / KeyPair / random

random

static fun random(): KeyPair! (source)

Generate a new key using a random generator.

Return
KeyPair!: A randomly generated key pair.