random

fun random(rng: Random = Random.Default): DhKeyExchange

Create an exchange with a fresh random 96-byte secret (libtorrent's default constructor: aux::random_bytes then import_bits).