|
| 1 | +extensions: |
| 2 | + - addsTo: |
| 3 | + pack: codeql/cpp-all |
| 4 | + extensible: randomNumberGeneratorModel |
| 5 | + # namespace, type, name, output, secure |
| 6 | + data: |
| 7 | + # C standard library / POSIX / BSD generators returning the value (insecure). |
| 8 | + - ["", "", "rand", "", false] |
| 9 | + - ["", "", "random", "", false] |
| 10 | + - ["", "", "drand48", "", false] |
| 11 | + - ["", "", "erand48", "", false] |
| 12 | + - ["", "", "lrand48", "", false] |
| 13 | + - ["", "", "nrand48", "", false] |
| 14 | + - ["", "", "mrand48", "", false] |
| 15 | + - ["", "", "jrand48", "", false] |
| 16 | + - ["", "", "rand_r", "", false] |
| 17 | + # POSIX/BSD generators returning the value (secure). |
| 18 | + - ["", "", "arc4random", "", true] |
| 19 | + - ["", "", "arc4random_uniform", "", true] |
| 20 | + # Generators writing to a buffer argument (secure). |
| 21 | + - ["", "", "arc4random_buf", "0", true] |
| 22 | + - ["", "", "getrandom", "0", true] |
| 23 | + - ["", "", "getentropy", "0", true] |
| 24 | + - ["", "", "RtlGenRandom", "0", true] |
| 25 | + - ["", "", "BCryptGenRandom", "1", true] |
| 26 | + - ["", "", "CryptGenRandom", "2", true] |
| 27 | + # C++ <random> engines (insecure) and std::random_device (secure). |
| 28 | + - ["std", "mersenne_twister_engine", "operator()", "", false] |
| 29 | + - ["std", "linear_congruential_engine", "operator()", "", false] |
| 30 | + - ["std", "subtract_with_carry_engine", "operator()", "", false] |
| 31 | + - ["std", "discard_block_engine", "operator()", "", false] |
| 32 | + - ["std", "shuffle_order_engine", "operator()", "", false] |
| 33 | + - ["std", "independent_bits_engine", "operator()", "", false] |
| 34 | + - ["std", "random_device", "operator()", "", true] |
0 commit comments