-
-
Notifications
You must be signed in to change notification settings - Fork 212
GB_random_set_enabled
Lior Halphon edited this page Nov 30, 2024
·
4 revisions
void GB_random_set_enabled(bool enable);
In random.h
When an emulator instance is initialized or reset, SameBoy will use randomness to initialize the contents of the various RAM regions with realistic data. If you wish to force a more deterministic initial state, call GB_random_set_enabled
with false
to disable this behavior.
GB_random_set_enabled
is thread-safe and can be called from any thread and context.
This setting is global and will affect all emulator instances in the process.