QuantumMechanics / NEM-sdk

NEM Developer Kit for Node.js and the browser
MIT License
137 stars 82 forks source link

No PRNG all time using the nem.crypto.nacl.randomBytes(32) #33

Closed wegorich closed 6 years ago

wegorich commented 6 years ago

When I doing

let r = nem.utils.convert.ua2hex(nem.crypto.nacl.randomBytes(32));

Find in sources:

//  Pluggable, initialized in high-level API below.
var randombytes = function(/* x, n */) { throw new Error('no PRNG'); };

I'm using the: "nem-sdk": "1.6.2"

wegorich commented 6 years ago

solved forgot to create endpoint, supposed that it should work without