0
有沒有一種方法可以在測試用例內使用我的minitest/autorun種子?MiniTest:在測試中使用種子
有沒有一種方法可以在測試用例內使用我的minitest/autorun種子?MiniTest:在測試中使用種子
只是猜測:Kernel::srand。
seed = srand # set a new seed and return the current one
srand(seed) # restore it