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())
Example #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())
 def test_get_fraction(self):
     r = FRandomStream()
     first_seed = r.get_current_seed()
     initial_seed = r.get_initial_seed()
     self.assertEqual(first_seed, initial_seed)
 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)
Example #5
0
 def test_get_fraction(self):
     r = FRandomStream()
     first_seed = r.get_current_seed()
     initial_seed = r.get_initial_seed()
     self.assertEqual(first_seed, initial_seed)
Example #6
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)