summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
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 8f8a7f33a8..cb5fd57822 100644
--- a/random.c
+++ b/random.c
@@ -1435,7 +1435,7 @@ Init_RandomSeed2(void)
VALUE seed = default_rand.seed;
if (RB_TYPE_P(seed, T_BIGNUM)) {
- RBASIC(seed)->klass = rb_cBignum;
+ rb_obj_reveal(seed, rb_cBignum);
}
}