flip one bit in one of the hashes - this should break the authentication
| 20 | public: |
| 21 | // flip one bit in one of the hashes - this should break the authentication |
| 22 | void Damage() { |
| 23 | unsigned int n = InsecureRandRange(vHash.size()); |
| 24 | int bit = InsecureRandBits(8); |
| 25 | *(vHash[n].begin() + (bit>>3)) ^= 1<<(bit&7); |
| 26 | } |
| 27 | }; |
| 28 | |
| 29 | BOOST_FIXTURE_TEST_SUITE(pmt_tests, BasicTestingSetup) |
no test coverage detected