Пример #1
0
 def test_reset(self):
     r = FRandomStream()
     first_seed = r.get_current_seed()
     r.generate_new_seed()
     second_seed = r.get_current_seed()
     self.assertTrue(first_seed != second_seed)
     r.reset()
     self.assertEqual(r.get_current_seed(), r.get_initial_seed())
Пример #2
0
 def test_reset(self):
     r = FRandomStream()
     first_seed = r.get_current_seed()
     r.generate_new_seed()
     second_seed = r.get_current_seed()
     self.assertTrue(first_seed != second_seed)
     r.reset()
     self.assertEqual(r.get_current_seed(), r.get_initial_seed())
Пример #3
0
 def test_generate_new_seed(self):
     r = FRandomStream()
     first_seed = r.get_current_seed()
     r.generate_new_seed()
     second_seed = r.get_current_seed()
     self.assertTrue(first_seed != second_seed)
Пример #4
0
 def test_generate_new_seed(self):
     r = FRandomStream()
     first_seed = r.get_current_seed()
     r.generate_new_seed()
     second_seed = r.get_current_seed()
     self.assertTrue(first_seed != second_seed)