summaryrefslogtreecommitdiff
path: root/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'random.c')
-rw-r--r--random.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/random.c b/random.c
index e711d283f1..ab9e42918f 100644
--- a/random.c
+++ b/random.c
@@ -1136,8 +1136,7 @@ static VALUE
random_rand(int argc, VALUE *argv, VALUE obj)
{
rb_random_t *rnd = get_rnd(obj);
- VALUE vmax, beg = Qundef, end = Qundef, v;
- int excl = 0;
+ VALUE vmax, v;
if (argc == 0) {
return rb_float_new(genrand_real(&rnd->mt));