Skip to content

Commit

Permalink
Fix randomly failing filter and subscription tests MetaMask#189
Browse files Browse the repository at this point in the history
  • Loading branch information
gislik committed Aug 28, 2018
1 parent abd9663 commit 05decb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/util/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function incrementHex(hexString){
}

function randomHash(){
return ethUtil.intToHex(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER))
return ethUtil.bufferToHex(ethUtil.toBuffer(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER)))
}

function stripLeadingZeroes (hexString) {
Expand Down

0 comments on commit 05decb3

Please sign in to comment.