diff options
Diffstat (limited to 'src/gc/env/gcenv.base.h')
-rw-r--r-- | src/gc/env/gcenv.base.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gc/env/gcenv.base.h b/src/gc/env/gcenv.base.h index 734b46fd3d..e1d40d6003 100644 --- a/src/gc/env/gcenv.base.h +++ b/src/gc/env/gcenv.base.h @@ -320,6 +320,11 @@ inline void* ALIGN_DOWN(void* ptr, size_t alignment) return reinterpret_cast<void*>(ALIGN_DOWN(as_size_t, alignment)); } +inline int GetRandomInt(int max) +{ + return rand() % max; +} + typedef struct _PROCESSOR_NUMBER { uint16_t Group; uint8_t Number; |