Avoid rand() in the legacy tr1 test suite by StephanTLavavej · Pull Request #4921 · microsoft/STL (original) (raw)

Our bosses and boss-like entities heard that rand() is considered harmful and are starting a push to avoid unnecessary use.

Almost all of our mentions of rand are Standard-mandated (or Standard stable name citations), but I found a few unnecessary uses in our legacy tr1 test suite. We avoid cleaning up its code unless there's a specific reason to mess with it, and this easily qualifies.