Fix build warnings in sighash tests.

This commit is contained in:
Taylor Hornby 2016-05-17 13:15:06 -06:00
parent a6770caa45
commit e857a0cd1f
1 changed files with 3 additions and 2 deletions

View File

@ -12,6 +12,7 @@
#include "test/test_bitcoin.h" #include "test/test_bitcoin.h"
#include "util.h" #include "util.h"
#include "version.h" #include "version.h"
#include "sodium.h"
#include <iostream> #include <iostream>
@ -130,8 +131,8 @@ void static RandomTransaction(CMutableTransaction &tx, bool fSingle) {
pourtx.serials[1] = GetRandHash(); pourtx.serials[1] = GetRandHash();
pourtx.ephemeralKey = GetRandHash(); pourtx.ephemeralKey = GetRandHash();
pourtx.randomSeed = GetRandHash(); pourtx.randomSeed = GetRandHash();
pourtx.ciphertexts[0] = {insecure_rand() % 100, insecure_rand() % 100}; randombytes_buf(pourtx.ciphertexts[0].begin(), pourtx.ciphertexts[0].size());
pourtx.ciphertexts[1] = {insecure_rand() % 100, insecure_rand() % 100}; randombytes_buf(pourtx.ciphertexts[1].begin(), pourtx.ciphertexts[1].size());
pourtx.macs[0] = GetRandHash(); pourtx.macs[0] = GetRandHash();
pourtx.macs[1] = GetRandHash(); pourtx.macs[1] = GetRandHash();
{ {