diff options
author | Nobuyoshi Nakada <[email protected]> | 2020-09-07 18:51:58 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2020-09-07 20:08:01 +0900 |
commit | 4924011262e35e3983e245cbfcff15aee7b295f3 () | |
tree | e48aa1fdfae411b29880a4ed7e6834bdaf2c4428 /random.c | |
parent | d6ec0ef59b4c7c95beaad09f77cb5f86a0901b97 (diff) |
Added WITH_REAL macros
Added `WITH_REAL` versions to `RB_RANDOM_INTERFACE` macros. Also these macros including "without real" versions no longer contain the terminator (semicolon and comma).
Notes: Merged: https://.com/ruby/ruby/pull/3024
-rw-r--r-- | random.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -127,7 +127,7 @@ static VALUE random_seed(VALUE); static void fill_random_seed(uint32_t *seed, size_t cnt); static VALUE make_seed_value(uint32_t *ptr, size_t len); -RB_RANDOM_INTERFACE_DECLARE(rand_mt) static const rb_random_interface_t random_mt_if = { DEFAULT_SEED_CNT * 32, RB_RANDOM_INTERFACE_DEFINE(rand_mt) |