question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When using any kind of random in testing we want it to be reproducible. Right now all the providers rely on some kind of random functions.

So, what I suggest:

  1. Create a new optional config entry: ELIZABETH_RANDOM_SEED (maybe it should be a parameter somewhere as well?)
  2. When it is set, use it’s value as a seed

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sobolevncommented, Jun 4, 2017

Not until the next weekends.

0reactions
sobolevncommented, Jun 10, 2017

@blakev maybe it is indeed a good idea.

@lk-geimfari I guess we should not create our own random instance, lets use shared random instance.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Random seed() Method - W3Schools
The seed() method is used to initialize the random number generator. The random number generator needs a number to start with (a seed...
Read more >
Random seed - Wikipedia
A random seed (or seed state, or just seed) is a number (or vector) used to initialize a pseudorandom number generator. For a...
Read more >
random.seed( ) in Python - GeeksforGeeks
Seed function is used to save the state of a random function, so that it can generate same random numbers on multiple executions...
Read more >
Python random.seed() function to initialize the pseudo-random ...
The seed value is a base value used by a pseudo-random generator to produce random numbers. The random number or data generated by...
Read more >
random — Generate pseudo-random numbers — Python 3.11 ...
Class that implements the default pseudo-random number generator used by the random module. Deprecated since version 3.9: In the future, the seed must...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found