all: minor clang-tidy cleanups

This commit is contained in:
Markus F.X.J. Oberhumer
2024-05-12 08:35:04 +02:00
parent 07a3b75b3e
commit 33f4f3a5a1
3 changed files with 9 additions and 3 deletions
+3 -1
View File
@@ -260,7 +260,9 @@ const char *upx_getenv(const char *envvar) noexcept {
}
// random value from libc; quality is not important for UPX
int upx_rand(void) noexcept { return ::rand(); }
int upx_rand(void) noexcept {
return ::rand(); // NOLINT(clang-analyzer-security.insecureAPI.rand)
}
void upx_rand_init(void) noexcept {
unsigned seed = 0;