Issue #125 resolved

add a {randomseed} substitution string

Chris Jerdonek
created an issue

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.

Comments (8)

  1. Log in to comment