randomScalar

fun ECCurve.randomScalar(L: Int = this.L): ModularBigInteger(source)

per RFC9794 4.7.2.

Parameters

L

security parameter controlling the drift from uniform; defaults to log2(modulus) * (3/2), which is the value used in RFC9794