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-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel.cc
Examining data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel.h
Examining data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/AddTest.cpp
Examining data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel2.h
Examining data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel2.cc
Examining data/r-cran-rstantools-2.1.1/inst/include/sys/stan_meta_header.hpp

FINAL RESULTS:

data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel.cc:10:47:  [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.
    class_<rstan::stan_fit<stan_model, boost::random::ecuyer1988> >("model_SimpleModel")
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel.cc:15:65:  [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.
    .method("call_sampler", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::call_sampler)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel.cc:16:64:  [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.
    .method("param_names", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::param_names)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel.cc:17:67:  [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.
    .method("param_names_oi", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::param_names_oi)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel.cc:18:68:  [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.
    .method("param_fnames_oi", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::param_fnames_oi)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel.cc:19:63:  [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.
    .method("param_dims", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::param_dims)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel.cc:20:66:  [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.
    .method("param_dims_oi", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::param_dims_oi)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel.cc:21:68:  [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.
    .method("update_param_oi", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::update_param_oi)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel.cc:22:66:  [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.
    .method("param_oi_tidx", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::param_oi_tidx)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel.cc:23:66:  [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.
    .method("grad_log_prob", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::grad_log_prob)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel.cc:24:61:  [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.
    .method("log_prob", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::log_prob)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel.cc:25:69:  [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.
    .method("unconstrain_pars", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::unconstrain_pars)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel.cc:26:67:  [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.
    .method("constrain_pars", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::constrain_pars)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel.cc:27:75:  [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.
    .method("num_pars_unconstrained", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::num_pars_unconstrained)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel.cc:28:78:  [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.
    .method("unconstrained_param_names", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::unconstrained_param_names)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel.cc:29:76:  [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.
    .method("constrained_param_names", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::constrained_param_names)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel2.cc:10:47:  [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.
    class_<rstan::stan_fit<stan_model, boost::random::ecuyer1988> >("model_SimpleModel2")
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel2.cc:15:65:  [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.
    .method("call_sampler", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::call_sampler)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel2.cc:16:64:  [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.
    .method("param_names", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::param_names)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel2.cc:17:67:  [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.
    .method("param_names_oi", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::param_names_oi)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel2.cc:18:68:  [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.
    .method("param_fnames_oi", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::param_fnames_oi)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel2.cc:19:63:  [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.
    .method("param_dims", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::param_dims)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel2.cc:20:66:  [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.
    .method("param_dims_oi", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::param_dims_oi)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel2.cc:21:68:  [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.
    .method("update_param_oi", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::update_param_oi)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel2.cc:22:66:  [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.
    .method("param_oi_tidx", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::param_oi_tidx)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel2.cc:23:66:  [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.
    .method("grad_log_prob", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::grad_log_prob)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel2.cc:24:61:  [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.
    .method("log_prob", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::log_prob)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel2.cc:25:69:  [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.
    .method("unconstrain_pars", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::unconstrain_pars)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel2.cc:26:67:  [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.
    .method("constrain_pars", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::constrain_pars)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel2.cc:27:75:  [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.
    .method("num_pars_unconstrained", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::num_pars_unconstrained)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel2.cc:28:78:  [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.
    .method("unconstrained_param_names", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::unconstrained_param_names)
data/r-cran-rstantools-2.1.1/tests/testthat/RStanTest/stanExports_SimpleModel2.cc:29:76:  [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.
    .method("constrained_param_names", &rstan::stan_fit<stan_model, boost::random::ecuyer1988> ::constrained_param_names)

ANALYSIS SUMMARY:

Hits = 32
Lines analyzed = 785 in approximately 0.05 seconds (14666 lines/second)
Physical Source Lines of Code (SLOC) = 558
Hits@level = [0]   0 [1]   0 [2]   0 [3]  32 [4]   0 [5]   0
Hits@level+ = [0+]  32 [1+]  32 [2+]  32 [3+]  32 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 57.3477 [1+] 57.3477 [2+] 57.3477 [3+] 57.3477 [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.