[前][次][番号順一覧][スレッド一覧]

ruby-changes:70257

From: Nobuyoshi <ko1@a...>
Date: Thu, 16 Dec 2021 17:44:29 +0900 (JST)
Subject: [ruby-changes:70257] 18fef09a02 (master): Refine wording about the default random seed [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=18fef09a02

From 18fef09a02d1d64b6ee892bf9d4c69c9235a97e2 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 16 Dec 2021 15:53:42 +0900
Subject: Refine wording about the default random seed [ci skip]

---
 spec/ruby/core/kernel/srand_spec.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/spec/ruby/core/kernel/srand_spec.rb b/spec/ruby/core/kernel/srand_spec.rb
index 90c1d09b821..f2209504222 100644
--- a/spec/ruby/core/kernel/srand_spec.rb
+++ b/spec/ruby/core/kernel/srand_spec.rb
@@ -11,7 +11,7 @@ describe "Kernel.srand" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/kernel/srand_spec.rb#L11
     srand(20).should == 10
   end
 
-  it "returns the previous seed value on the first call" do
+  it "returns the system-initialized seed value on the first call" do
     ruby_exe('print srand(10)', options: '--disable-gems').should =~ /\A\d+\z/
   end
 
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]