MCPcopy Create free account
hub / github.com/docknetwork/crypto / rand

Function rand

utils/src/misc.rs:114–116  ·  view source on GitHub ↗

Generates a random using given `rng`.

(rng: &mut R)

Source from the content-addressed store, hash-verified

112
113/// Generates a random using given `rng`.
114pub fn rand<T: UniformRand, R: RngCore>(rng: &mut R) -> T {
115 UniformRand::rand(rng)
116}
117
118/// Produces points by multiplying supplied base by the provided scalars.
119pub fn points<G: AffineRepr>(base: &G, scalars: &[G::ScalarField]) -> Vec<G> {

Callers 15

newMethod · 0.85
initMethod · 0.85
init_schnorr_protocolMethod · 0.85
valid_boundsFunction · 0.85
initMethod · 0.85
init_schnorr_protocolMethod · 0.85
initMethod · 0.85
initMethod · 0.85
init_schnorr_protocolMethod · 0.85

Calls

no outgoing calls