...
This recommendation appears in the C Secure Coding Standard as MSC18C. Use srand() before rand() to generate different sequences of pseudorandom numbers MSC32-C. Ensure your random number generator is properly seeded.
References
C++Reference
...
This recommendation appears in the C Secure Coding Standard as MSC18C. Use srand() before rand() to generate different sequences of pseudorandom numbers MSC32-C. Ensure your random number generator is properly seeded.
C++Reference