[PATCH] D22346: [Clang-tidy] CERT-MSC50-CPP (std:rand() )

Eugene Zelenko via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 11 14:26:31 PDT 2016


Eugene.Zelenko added a comment.

Please mention this check in docs/ReleaseNotes.rst (in alphabetical order).


================
Comment at: docs/clang-tidy/checks/cert-msc50-cpp.rst:4
@@ +3,3 @@
+cert-msc-50
+=======================
+
----------------
Should be same length as section name above.

================
Comment at: docs/clang-tidy/checks/cert-msc50-cpp.rst:6
@@ +5,2 @@
+
+Pseudorandom number generators use mathematical algorithms to produce a sequence of numbers with good statistical properties, but the numbers produced are not genuinely random. This checker warns for the usage of std::rand().
----------------
Please use check and highlight std::rand() with ``.


Repository:
  rL LLVM

https://reviews.llvm.org/D22346





More information about the cfe-commits mailing list