mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-04-03 11:06:14 +02:00
If a process forks with the PSA subsystem active, the PSA RNG state is duplicated. This led to the parent process and the child process generating the same sequence of random numbers. Fix this by forcing a reseed if the value of `getpid()` changes. This is the same technique used in OpenSSL ≥1.1.1d. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>