How to use the rand function from elliptic

Find comprehensive JavaScript elliptic.rand code examples handpicked from public code repositorys.

7906
7907
7908
7909
7910
7911
7912
7913
7914
// Instantiate Hmac_DRBG
var drbg = new HmacDRBG({
  hash: this.hash,
  pers: options.pers,
  persEnc: options.persEnc || 'utf8',
  entropy: options.entropy || elliptic.rand(this.hash.hmacStrength),
  entropyEnc: options.entropy && options.entropyEnc || 'utf8',
  nonce: this.n.toArray()
});
fork icon0
star icon0
watch icon1

+ 2 other calls in file