tests: avoid unnecessary sha256 for hash

This commit is contained in:
Daniel Cousens 2014-07-29 01:01:11 +10:00
parent 6e1bbe8ebe
commit a8c6f5284d

View file

@ -1,6 +1,5 @@
var assert = require('assert') var assert = require('assert')
var crypto = require('crypto') var crypto = require('crypto')
var crypto2 = require('../src/crypto')
var networks = require('../src/networks') var networks = require('../src/networks')
var sinon = require('sinon') var sinon = require('sinon')
@ -115,7 +114,7 @@ describe('ECKey', function() {
}) })
describe('signing', function() { describe('signing', function() {
var hash = crypto2.sha256('Vires in numeris') var hash = crypto.randomBytes(32)
var priv = ECKey.makeRandom() var priv = ECKey.makeRandom()
var signature = priv.sign(hash) var signature = priv.sign(hash)