summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-11-27 21:36:12 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-11-27 21:38:08 +0900
commit039ba387aa3c94600c60bbc2d7a9cf448f843ca5 (patch)
tree9424b858ce86c1c8769982cd36de25254ba820cf /include
parent5d8fe1267d2d4e60943e7b41f6dad990a53e077b (diff)
Use opaque struct pointer than void
Diffstat (limited to 'include')
-rw-r--r--include/ruby/random.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/ruby/random.h b/include/ruby/random.h
index 001f67df86..56b2dd413f 100644
--- a/include/ruby/random.h
+++ b/include/ruby/random.h
@@ -14,9 +14,10 @@
RBIMPL_SYMBOL_EXPORT_BEGIN()
-typedef struct {
+struct rb_random_struct {
VALUE seed;
-} rb_random_t;
+};
+typedef struct rb_random_struct rb_random_t;
typedef void rb_random_init_func(rb_random_t *, const uint32_t *, size_t);
typedef unsigned int rb_random_get_int32_func(rb_random_t *);