shithub: openh264

Download patch

ref: c301db696ea1aac0ce1cffe0628933fd02d54761
parent: 9ea4d5bd73f1ade5a2a41f4fb72422687e5ee5cb
author: Martin Storsjö <martin@martin.st>
date: Fri Feb 27 07:04:37 EST 2015

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.

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