Skip to content

nondeterministic RNG seed in tests makes troubleshooting impossible, should use C++ RNG everywhere #31

@evaleev

Description

@evaleev

srand(time()) alone is never a good idea in tests, as it prevents reproduction of bugs. Use of rand() is a bad idea anyway, as it results in antipatterns everywhere. Std C++ RNG is far from perfect.

My attempt to switch to std C++ RNG hints at more lurking bugs in test.cc, so this is likely a sister issue to #28

Metadata

Metadata

Assignees

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