I want to be able to generate consistent silly mocks.
It appears the solution is to use:silly.mock_random.seed() However, when I do, I do not get consistent results: ❌
import silly
silly.mock_random.seed(123)
print(silly.name())
When I rerun this code, I do not get the same result.
However, when I seed using random I do get consistent results: ✅
import random
import silly
random.seed(123)
print(silly.name())
I guess this ticket regards updating the documentation to properly seed this stuff.
I want to be able to generate consistent silly mocks.
It appears the solution is to use:
silly.mock_random.seed()However, when I do, I do not get consistent results: ❌When I rerun this code, I do not get the same result.
However, when I seed using
randomI do get consistent results: ✅I guess this ticket regards updating the documentation to properly seed this stuff.