Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the seed for the generated data to become constant #175

Open
Ekleog opened this issue Nov 30, 2022 · 1 comment
Open

Set the seed for the generated data to become constant #175

Ekleog opened this issue Nov 30, 2022 · 1 comment

Comments

@Ekleog
Copy link
Contributor

Ekleog commented Nov 30, 2022

Hello! I'm looking into mockd to generate test data for my integration tests.

However, seeing how I'll need to refer to the generated data in my tests, I'm wondering if it'd make sense to have a way to set the seed, so that the randomly-generated data is always the same?

For now I'll probably just use mockd to generate a SQL file of data to then create my database, but it'd be awesome to remove that checked-in SQL file and instead just fill the database live.

WDYT?

@jerusdp
Copy link
Contributor

jerusdp commented Nov 30, 2022

The thought had occurred, but I hadn't got any further.

Would require:

  • Public random generator with seeding
  • enable use of public random number generator random data generators
  • default seeding when not set

Any other thoughts?

Jerry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants