1 #ifndef GEN_UTILS_H 2 #define GEN_UTILS_H 3 4 #include <stdlib.h> 5 #include "../edk/BaseTypes.h" 6 #include "../common-utils.h" 7 8 #define CPER_ERROR_TYPES_KEYS (int []){1, 16, 4, 5, 6, 7, 8, 9, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26} 9 10 size_t generate_random_section(void** location, size_t size); 11 UINT8* generate_random_bytes(size_t size); 12 void init_random(); 13 void create_valid_error_section(UINT8* start); 14 UINT8 int_to_bcd(int value); 15 16 #endif