We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e1bbe8 commit a8c6f52Copy full SHA for a8c6f52
test/eckey.js
@@ -1,6 +1,5 @@
1
var assert = require('assert')
2
var crypto = require('crypto')
3
-var crypto2 = require('../src/crypto')
4
var networks = require('../src/networks')
5
var sinon = require('sinon')
6
@@ -115,7 +114,7 @@ describe('ECKey', function() {
115
114
})
116
117
describe('signing', function() {
118
- var hash = crypto2.sha256('Vires in numeris')
+ var hash = crypto.randomBytes(32)
119
var priv = ECKey.makeRandom()
120
var signature = priv.sign(hash)
121
0 commit comments