Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/r-cran-mvnfast-0.2.5.1+dfsg/src/msCpp.cpp
Examining data/r-cran-mvnfast-0.2.5.1+dfsg/src/dmixtCpp.cpp
Examining data/r-cran-mvnfast-0.2.5.1+dfsg/src/init.c
Examining data/r-cran-mvnfast-0.2.5.1+dfsg/src/rmixtCpp.cpp
Examining data/r-cran-mvnfast-0.2.5.1+dfsg/src/rmvtCpp.cpp
Examining data/r-cran-mvnfast-0.2.5.1+dfsg/src/mahaCpp.cpp
Examining data/r-cran-mvnfast-0.2.5.1+dfsg/src/mvnfast.h
Examining data/r-cran-mvnfast-0.2.5.1+dfsg/src/rmixnCpp.cpp
Examining data/r-cran-mvnfast-0.2.5.1+dfsg/src/rmvnCpp.cpp
Examining data/r-cran-mvnfast-0.2.5.1+dfsg/src/dmvtCpp.cpp
Examining data/r-cran-mvnfast-0.2.5.1+dfsg/src/sitmo/sitmo.hpp

FINAL RESULTS:

data/r-cran-mvnfast-0.2.5.1+dfsg/src/rmixtCpp.cpp:114:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  boost::random::chi_squared_distribution<> chisq( df );
data/r-cran-mvnfast-0.2.5.1+dfsg/src/rmvtCpp.cpp:99:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  boost::random::chi_squared_distribution<> chisq( df );

ANALYSIS SUMMARY:

Hits = 2
Lines analyzed = 1528 in approximately 0.06 seconds (24620 lines/second)
Physical Source Lines of Code (SLOC) = 867
Hits@level = [0]   0 [1]   0 [2]   0 [3]   2 [4]   0 [5]   0
Hits@level+ = [0+]   2 [1+]   2 [2+]   2 [3+]   2 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 2.30681 [1+] 2.30681 [2+] 2.30681 [3+] 2.30681 [4+]   0 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.