mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-13 07:25:42 +08:00
initialize radom number generator
This commit is contained in:
@@ -413,6 +413,8 @@ int main(int argc, char **argv) {
|
||||
std::cout << "NOT using OpenMP based parallelization\n";
|
||||
#endif
|
||||
|
||||
std::srand(std::time(nullptr));
|
||||
|
||||
std::clock_t start_clk = std::clock();
|
||||
test1();
|
||||
auto end_clk = std::clock();
|
||||
|
||||
Reference in New Issue
Block a user