ruby-changes:65340
From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Thu, 25 Feb 2021 16:28:02 +0900 (JST)
Subject: [ruby-changes:65340] 294c244ac8 (master): rb_random_int: ended before it begins
https://git.ruby-lang.org/ruby.git/commit/?id=294c244ac8 From 294c244ac805c0b9c327cd92bc87fe2c7c4eb95f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= <shyouhei@r...> Date: Thu, 25 Feb 2021 16:16:05 +0900 Subject: rb_random_int: ended before it begins It existed since f3d022543ef2afde3d53e7f6b3028eafe39d0ef4 until 96760236079b15674a6322a2ca41b1528b51afbd. No official releases included the actual function. The declaration shall be deleted. --- include/ruby/internal/intern/random.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/ruby/internal/intern/random.h b/include/ruby/internal/intern/random.h index 25c52f4..6482a8f 100644 --- a/include/ruby/internal/intern/random.h +++ b/include/ruby/internal/intern/random.h @@ -34,7 +34,6 @@ unsigned int rb_genrand_int32(void); https://github.com/ruby/ruby/blob/trunk/include/ruby/internal/intern/random.h#L34 double rb_genrand_real(void); void rb_reset_random_seed(void); VALUE rb_random_bytes(VALUE rnd, long n); -VALUE rb_random_int(VALUE rnd, VALUE max); unsigned int rb_random_int32(VALUE rnd); double rb_random_real(VALUE rnd); unsigned long rb_random_ulong_limited(VALUE rnd, unsigned long limit); -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/