History

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.

Martin Storsjö committed 11 years ago

Commit c301db61 parent 9ea4d5b1 file · +0 −1Browse files

Showing the changes to test/api/encode_decode_api_test.cpp (1 of 1 file). Show all

Unified · Split

test/api/encode_decode_api_test.cpp+0−1
@@ -3463,7 +3463,6 @@ INSTANTIATE_TEST_CASE_P (EncodeDecodeTestAPIBase, EncodeTestAPI, · 3462 unmodified lines
34633463 ::testing::ValuesIn (kOptionParamArray));
34643464
34653465 TEST_P (EncodeTestAPI, SetEncOptionSize) {
3466− srand(1002);
34673466 EncodeOptionParam p = GetParam();
34683467 FILE * pFile = NULL;
34693468 if (p.sFileSave != NULL && strlen(p.sFileSave) > 0) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t