random

package
v0.0.0-...-4c49fd5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2023 License: GPL-2.0, GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRandomInt

func GetRandomInt(length int) *big.Int

GetRandomInt get random int

func GetRandomIntFromZn

func GetRandomIntFromZn(n *big.Int) *big.Int

GetRandomIntFromZn get random int from n

func GetRandomIntFromZnStar

func GetRandomIntFromZnStar(n *big.Int) *big.Int

GetRandomIntFromZnStar get random int < n, >1,and gcd(val,n) = 1

func GetSafeRandomPrimeInt

func GetSafeRandomPrimeInt() (*big.Int, *big.Int)

GetSafeRandomPrimeInt get safe big prime

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL