summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/misc.c b/misc.c
index 3bd06c6..497a94f 100644
--- a/misc.c
+++ b/misc.c
@@ -48,10 +48,12 @@ size_t str_copy(char *dest, size_t destsz, const char *src) {
return destsz-1;
}
-static U32 rand_u32(U32 seed) {
+static inline U32 rand_u32(U32 seed) {
U64 seed64 = (U64)seed;
return (U32)((seed64 * 0x832f0fda4e1a8642 + 0x41d49cd5459a2ab4) >> 32);
}
-
+static inline bool strs_equal(const char *a, const char *b) {
+ return strcmp(a, b) == 0;
+}