diff options
| author | MarcoFalke <[email protected]> | 2016-08-25 10:59:45 +0200 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2016-08-25 11:00:21 +0200 |
| commit | 95a983d56dbda457e3bf8766d59bac74c7aa5699 (patch) | |
| tree | cb1d997046e114bf2b8416d53586d4603b130242 /src/test/util_tests.cpp | |
| parent | Merge #8282: net: Feeler connections to increase online addrs in the tried ta... (diff) | |
| parent | [test] Remove unused code (diff) | |
| download | discoin-95a983d56dbda457e3bf8766d59bac74c7aa5699.tar.xz discoin-95a983d56dbda457e3bf8766d59bac74c7aa5699.zip | |
Merge #8578: [test] Remove unused code
fa1cf9e [test] Remove unused code (MarcoFalke)
Diffstat (limited to 'src/test/util_tests.cpp')
| -rw-r--r-- | src/test/util_tests.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/test/util_tests.cpp b/src/test/util_tests.cpp index e467a4171..efd449874 100644 --- a/src/test/util_tests.cpp +++ b/src/test/util_tests.cpp @@ -243,11 +243,7 @@ BOOST_AUTO_TEST_CASE(util_IsHex) BOOST_AUTO_TEST_CASE(util_seed_insecure_rand) { - int i; - int count=0; - seed_insecure_rand(true); - for (int mod=2;mod<11;mod++) { int mask = 1; @@ -256,10 +252,9 @@ BOOST_AUTO_TEST_CASE(util_seed_insecure_rand) //mask is 2^ceil(log2(mod))-1 while(mask<mod-1)mask=(mask<<1)+1; - count = 0; + int count = 0; //How often does it get a zero from the uniform range [0,mod)? - for (i=0;i<10000;i++) - { + for (int i = 0; i < 10000; i++) { uint32_t rval; do{ rval=insecure_rand()&mask; |