summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'random.c')
-rw-r--r--random.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/random.c b/random.c
index 72b0f46b0f..36dcb54d10 100644
--- a/random.c
+++ b/random.c
@@ -1455,9 +1455,10 @@ random_s_rand(int argc, VALUE *argv, VALUE obj)
#include "siphash.c"
static st_index_t hashseed;
+typedef uint8_t sipseed_keys_t[16];
static union {
- uint8_t key[16];
- uint32_t u32[(16 * sizeof(uint8_t) - 1) / sizeof(uint32_t)];
+ sipseed_keys_t key;
+ uint32_t u32[type_roomof(sipseed_keys_t, uint32_t)];
} sipseed;
static void