Skip to content

Commit a8c6f52

Browse files
committed
tests: avoid unnecessary sha256 for hash
1 parent 6e1bbe8 commit a8c6f52

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/eckey.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
var assert = require('assert')
22
var crypto = require('crypto')
3-
var crypto2 = require('../src/crypto')
43
var networks = require('../src/networks')
54
var sinon = require('sinon')
65

@@ -115,7 +114,7 @@ describe('ECKey', function() {
115114
})
116115

117116
describe('signing', function() {
118-
var hash = crypto2.sha256('Vires in numeris')
117+
var hash = crypto.randomBytes(32)
119118
var priv = ECKey.makeRandom()
120119
var signature = priv.sign(hash)
121120

0 commit comments

Comments
 (0)