Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

...