Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/mccode_antlr/translators/c_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ def jump_line(instance, jump):
/* available random number generators */
#define _RNG_ALG_MT 1
#define _RNG_ALG_KISS 2
#define _RNG_ALG_TINYMT 3
/* selection of random number generator */
#ifndef RNG_ALG
# define RNG_ALG _RNG_ALG_KISS
Expand All @@ -166,6 +167,9 @@ def jump_line(instance, jump):
#define randstate_t uint32_t
#elif RNG_ALG == _RNG_ALG_KISS // KISS
#define randstate_t uint64_t
#elif RNG_ALG == _RNG_ALG_TINYMT // TinyMT64
#define randstate_t uint64_t
#define RANDSTATE_LEN 2
#endif

#ifndef MC_NUSERVAR
Expand Down
Loading