Random.h 518 B

12345678910111213141516171819
  1. #pragma once
  2. namespace il2cpp
  3. {
  4. namespace vm
  5. {
  6. class LIBIL2CPP_CODEGEN_API Random
  7. {
  8. public:
  9. static bool Open();
  10. static void* Create();
  11. static void Free(void* handle);
  12. static bool TryGetBytes(void** handle, unsigned char *buffer, int buffer_size);
  13. static bool TryGetUnsignedInt32(void** handle, uint32_t *val, uint32_t min, uint32_t max);
  14. static uint32_t Next(void** handle, uint32_t min, uint32_t max);
  15. };
  16. } /* namespace vm */
  17. } /* namespace il2cpp */