uuid.h 410 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include "defines.h"
  3. /**
  4. * @brief A universally unique identifier (UUID).
  5. */
  6. typedef struct uuid {
  7. char value[37];
  8. } uuid;
  9. /**
  10. * @brief Seeds the uuid generator with the given value.
  11. *
  12. * @param seed The seed value.
  13. */
  14. void uuid_seed(u64 seed);
  15. /**
  16. * @brief Generates a universally unique identifier (UUID).
  17. *
  18. * @return a newly-generated UUID.
  19. */
  20. KAPI uuid uuid_generate(void);