Commit: 9320da5b102893cdac161b27fc7c325ea22119d6
Parent: 6efadbcd07955587ff820c1e742c1458c48ae923
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:18
Tree: 32938eae7b23da1faa0eb4532e1bc516ee0396c5

profiles/health: 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 profiles/health/hdp.c | 11 +++++++- - - -
M profiles/health/mcap.c | 17 +++++++++++++++- -

2 files changed, 22 insertions(+), 6 deletions(-)

View Full Diff | Patch