Skip to content

Consistent seeding #14

@ybressler

Description

@ybressler

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions