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

add a {randomseed} substitution string #125

Closed
pytoxbot opened this issue Sep 17, 2016 · 8 comments
Closed

add a {randomseed} substitution string #125

pytoxbot opened this issue Sep 17, 2016 · 8 comments

Comments

@pytoxbot
Copy link

It would be nice to expose a special substitution string called something like {randomseed} that would generate a random integer value each time it is used. This would be useful for example in cases like this:

setenv =
    PYTHONHASHSEED = {randomseed}

An associated command-line option --randomseed to force it to a particular
value would also be good. See this e-mail thread for background.

Note that to be consistent with supporting --randomseed, {randomseed} should probably yield the same value every time it is used (e.g. if it appears more than once in tox.ini). In other words, it is a global value established once when tox is invoked.

@pytoxbot
Copy link
Author

Original comment by @cjerdonek

That's great to hear. Thanks a lot, Holger!

@pytoxbot
Copy link
Author

Original comment by @hpk42

Thanks, Chris. All merged now!

@pytoxbot
Copy link
Author

Original comment by @cjerdonek

An updated patch for this issue is at pull request #79.

@pytoxbot
Copy link
Author

Original comment by @cjerdonek

I created a new pull request #74 for this issue which changes the proposed API and behavior somewhat based on the discussion around pull request #73.

@pytoxbot
Copy link
Author

Original comment by @cjerdonek

I created pull request #73 for this.

@pytoxbot
Copy link
Author

Original comment by @cjerdonek

I implemented and documented the feature in this fork but still need to add tests.

@pytoxbot
Copy link
Author

Original comment by @cjerdonek

I will prepare a patch for this.

@pytoxbot
Copy link
Author

Original comment by @cjerdonek

Here is the documentation for PYTHONHASHSEED.

@tox-dev tox-dev locked and limited conversation to collaborators Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant