Skip to content

Commit 5850c11

Browse files
committed
++
1 parent 58f12d4 commit 5850c11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generate_key_pair.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const dhive = require('@hiveio/dhive');
22
const Crypto = require('crypto')
33
let opts = {};
44
opts.addressPrefix = 'STM';
5-
const rando = Crypto.getRandomValues(new Uint16Array(32))
5+
const rando = Crypto.randomBytes(32).toString('hex');
66
const ownerKey = dhive.PrivateKey.fromLogin('thestandarduser', rando, 'spk');
77
console.log(ownerKey.toString(), ownerKey.createPublic(opts.addressPrefix).toString())
88
process.exit()

0 commit comments

Comments
 (0)