aboutsummaryrefslogtreecommitdiff
path: root/fsm/random.h
diff options
context:
space:
mode:
Diffstat (limited to 'fsm/random.h')
-rw-r--r--fsm/random.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/fsm/random.h b/fsm/random.h
new file mode 100644
index 0000000..49aa0cf
--- /dev/null
+++ b/fsm/random.h
@@ -0,0 +1,12 @@
+// fsm-random.h: Random number generator for SpaghettiMonster.
+// Copyright (C) 2017-2023 Selene ToyKeeper
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#pragma once
+
+#ifdef USE_PSEUDO_RAND
+uint8_t pseudo_rand();
+// TODO: test without "volatile", in case it's not needed
+volatile uint8_t pseudo_rand_seed = 0;
+#endif
+