Commit: df64c87022246022340f0f572b2737cd7ff886f8
Parent: 433f7cce3bc68a05bc7a977aa8e130065872ef3d
Author: Tedd Ho-Jeong An <tedd.an@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2021-12-09 02:56:17
Tree: 2075c058daf47235341ca9ab7fb8bd79af2a3d25

emulator: Replace random number generation function This patch replaces the rand() function to the getrandom() syscall. It was reported by the Coverity scan rand() should not be used for security-related applications, because linear congruential algorithms are too easy to break

Diffstat

M emulator/le.c | 11 +++++++++- -
M emulator/phy.c | 10 ++++++++- -

2 files changed, 17 insertions(+), 4 deletions(-)

View Full Diff | Patch