UNPKG

@stellot/crypto

Version:

Crypto libraries for front and backend

6 lines (5 loc) 120 B
import BN from 'bn.js'; import rand from 'randombytes'; export function randomScalar() { return new BN(rand(32)); }