core: add random number generator

This commit is contained in:
2024-10-24 21:33:05 +01:00
parent d0dcee9c6f
commit 44fb8593a5
8 changed files with 505 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
#ifndef BLUELIB_MISC_H_
#define BLUELIB_MISC_H_
#ifndef BLUELIB_MISB_H_
#define BLUELIB_MISB_H_
#define b_unbox(type, box, member) \
((type *_Nonnull)((box) ? (uintptr_t)(box) - (offsetof(type, member)) : 0))
@@ -10,4 +10,4 @@
#define z__b_numargs(arg_type, ...) \
(sizeof((arg_type[]) {__VA_ARGS__}) / sizeof(arg_type))
#endif // C_MISC_H_
#endif // B_MISB_H_