CWE-336: Same Seed in Pseudo-Random Number Generator (PRNG)
A Pseudo-Random Number Generator (PRNG) uses the same seed each time the product is initialized.
Last updated
Overview
Given the deterministic nature of PRNGs, using the same seed for each initialization will lead to the same output in the same order. If an attacker can guess (or knows) the seed, then the attacker may be able to determine the random numbers that will be produced from the PRNG.
Real-world CVEs
2 recorded CVEs are caused by CWE-336 (Same Seed in Pseudo-Random Number Generator (PRNG)). The highest-severity and most recent are shown first. 1 new CWE-336 CVE has been recorded so far in 2026.
Common consequences
What can happen when CWE-336 is exploited.
Other, Bypass Protection Mechanism
Affects: Other, Access Control