| 6 | |
| 7 | template <typename T> |
| 8 | std::vector<BYTE> convertToByteVector(T x) |
| 9 | { |
| 10 | std::vector<BYTE> bytes; |
| 11 | size_t byteCount = sizeof(T); |
| 12 | |
| 13 | for (size_t i = 0; i < byteCount; ++i) |
| 14 | bytes.push_back((BYTE)((x >> (i * 8)) & 0xFF)); |
| 15 | |
| 16 | return bytes; |
| 17 | } |
| 18 | |
| 19 | int getRandomInt(int min, int max); |
| 20 |
nothing calls this directly
no outgoing calls
no test coverage detected