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

ruby-changes:60208

From: Koichi <ko1@a...>
Date: Thu, 27 Feb 2020 02:45:31 +0900 (JST)
Subject: [ruby-changes:60208] f9d314245b (master): Revert "`srand($seed)` at the beginning of each test"

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

From f9d314245b1b088555253f5b653a801031cdc1e6 Mon Sep 17 00:00:00 2001
From: Koichi Sasada <ko1@a...>
Date: Thu, 27 Feb 2020 02:44:34 +0900
Subject: Revert "`srand($seed)` at the beginning of each test"

This reverts commit 7c1553e91db07fed4fed3287b50304f1c69a685d.
It breaks some tests.

diff --git a/tool/lib/minitest/unit.rb b/tool/lib/minitest/unit.rb
index d739a60..8569b2c 100644
--- a/tool/lib/minitest/unit.rb
+++ b/tool/lib/minitest/unit.rb
@@ -1297,9 +1297,6 @@ module MiniTest https://github.com/ruby/ruby/blob/trunk/tool/lib/minitest/unit.rb#L1297
         start_time = Time.now
 
         result = ""
-
-        srand @options[:seed]
-
         begin
           @passed = nil
           self.before_setup
-- 
cgit v0.10.2


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

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