Remove a stray srand

The individual tests shouldn't reseed the random number generator
(other than for local debugging).

Hardcoding a specific random seed here leads to this test (and
all subsequent tests) not testing things randomly as intended, but
always testing the same parameters.
This commit is contained in:
Martin Storsjö
2015-02-27 12:04:37 +02:00
parent 9ea4d5bd73
commit c301db696e

View File

@@ -3463,7 +3463,6 @@ INSTANTIATE_TEST_CASE_P (EncodeDecodeTestAPIBase, EncodeTestAPI,
::testing::ValuesIn (kOptionParamArray));
TEST_P (EncodeTestAPI, SetEncOptionSize) {
srand(1002);
EncodeOptionParam p = GetParam();
FILE * pFile = NULL;
if (p.sFileSave != NULL && strlen(p.sFileSave) > 0) {