summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-09-07 18:51:58 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-09-07 20:08:01 +0900
commit4924011262e35e3983e245cbfcff15aee7b295f3 (patch)
treee48aa1fdfae411b29880a4ed7e6834bdaf2c4428 /random.c
parentd6ec0ef59b4c7c95beaad09f77cb5f86a0901b97 (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
Notes: Merged: https://github.com/ruby/ruby/pull/3024
Diffstat (limited to 'random.c')
-rw-r--r--random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/random.c b/random.c
index 75f4dba..4ceff37 100644
--- a/random.c
+++ b/random.c
@@ -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)
+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)