Skip to content

Make the random seed accessible inside the tests #331

@GoogleCodeExporter

Description

@GoogleCodeExporter
It would be gread if you could access the random seed inside the tests.

In this way, one could generate pseudo random numbers out of this seed and then 
test the functions with random inputs.

The problem now is, that when we test something with a random seed like 
"time(NULL)", and we have an error, it is really hard to see, what the actual 
input arguments to the function where.

However, if this is connected to the googletest random seed, one can reproduce 
it exactly like the order of the gtest_shuffle, and has really deterministic 
and repeatable results based on the (random) seed...

Original issue reported on code.google.com by rgg...@gmail.com on 19 Nov 2010 at 9:13

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions