seedelf_cli::schnorr

Function random_scalar

Source
pub fn random_scalar() -> Scalar
Expand description

Generates a cryptographically secure random scalar.

This function uses a secure random number generator (OsRng) to produce a random Scalar suitable for cryptographic operations.

ยงReturns

  • Scalar - A randomly generated scalar.