From 4e12fa620f47c5a64c19ed1c28f9cca93ecd0746 Mon Sep 17 00:00:00 2001 From: Jonas Volman Date: Tue, 14 Jul 2026 12:45:19 -0700 Subject: [PATCH] Match get_global_local_random_seed_address --- source/math/random_math.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/source/math/random_math.c b/source/math/random_math.c index 3b7eccfc..77a4c1d8 100644 --- a/source/math/random_math.c +++ b/source/math/random_math.c @@ -54,16 +54,36 @@ symbols in this file: /* ---------- headers */ +#include "cseries.h" +#include "real_math.h" + /* ---------- constants */ /* ---------- macros */ /* ---------- structures */ +struct random_math_globals +{ + void *random_direction_table; + short random_direction_table_size; + short pad; + long global_random_seed_lock; + unsigned long global_random_seed; + unsigned long global_local_random_seed; +}; + /* ---------- prototypes */ /* ---------- globals */ +static struct random_math_globals random_math_globals; + /* ---------- public code */ +unsigned long *get_global_local_random_seed_address(void) +{ + return &random_math_globals.global_local_random_seed; +} + /* ---------- private code */