Index: utils.h |
diff --git a/utils.h b/utils.h |
index 8438313808caedffa0181e0eea9899cf3fe4bb22..8b070ed157d3c256346d1c71f02897409d3482fd 100644 |
--- a/utils.h |
+++ b/utils.h |
@@ -125,6 +125,10 @@ const char* GetGErrorMessage(const GError* error); |
// Initiates a system reboot. Returns true on success, false otherwise. |
bool Reboot(); |
+// Fuzzes an integer |value| randomly in the range: |
+// [value - range / 2, value + range - range / 2] |
+int FuzzInt(int value, unsigned int range); |
+ |
// Log a string in hex to LOG(INFO). Useful for debugging. |
void HexDumpArray(const unsigned char* const arr, const size_t length); |
inline void HexDumpString(const std::string& str) { |