Fabian Maurer (@DarkShadow44) commented about dlls/comctl32/tests/listview.c:
- int prev_value;
- GetClientRect(hwndparent, &rcClient);
- lvc.mask = LVCF_TEXT | LVCF_WIDTH | LVCF_SUBITEM;
- lvc.pszText = col_names[0];
- lvc.cx = rcClient.right / 2;
- lvc.iSubItem = 0;
- SendMessageA(hwndListView, LVM_INSERTCOLUMNA, 0, (LPARAM) &lvc);
- lvc.pszText = col_names[1];
- lvc.iSubItem = 1;
- lvc.cx = rcClient.right / 2;
- SendMessageA(hwndListView, LVM_INSERTCOLUMNA, 1, (LPARAM) &lvc);
- srand((unsigned)time(NULL));
Wouldn't it be better if the tests were deterministic?