lkrg-org / lkrg

Linux Kernel Runtime Guard
https://lkrg.org
Other
404 stars 72 forks source link

Clean up our use/wrapper of get_random_int()/get_random_long() #235

Closed solardiz closed 1 year ago

solardiz commented 1 year ago

This avoids use of the deprecated and now dropped get_random_int on Linux 4.11+ (#233), simplifies our get_random_long wrapper (#234), and fixes a typo in one of the notifiers' rates (changing its rate to hopefully what was intended).

solardiz commented 1 year ago

CI is all-green and this passed my manual tests on 2 systems (outdated/non-updated CentOS 7 and Ubuntu 20.04). I'll merge.