Calling rand() function several times to produce a sequence of pseudorandom numbers will result in generating the same sequence in different runs of the program.
This can lead to security threat since, after the first run, an attacker can know the sequence to be generated.
Noncompliant Code Example
...