From c301db696ea1aac0ce1cffe0628933fd02d54761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 27 Feb 2015 12:04:37 +0200 Subject: [PATCH] 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. --- test/api/encode_decode_api_test.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/test/api/encode_decode_api_test.cpp b/test/api/encode_decode_api_test.cpp index 1ce84ed6..bc22c32b 100644 --- a/test/api/encode_decode_api_test.cpp +++ b/test/api/encode_decode_api_test.cpp @@ -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) {