...
[C++ Reference] Standard C Library
[MITRE 07] CWE ID 327 , "Use of a Broken or Risky Cryptographic Algorithm," CWE ID 330, "Use of Insufficiently Random Values"
[MSDN] "CryptGenRandom Function"
...
MSC31-CPP. Ensure that return values are compared against the proper type 49 049. Miscellaneous (MSC) MSC33-CPP. Obey the One Definition Rule