random-util: Add an environment variable to disable RDRAND.
authorKyle Huey <khuey@kylehuey.com>
Wed, 23 Sep 2020 21:19:09 +0000 (14:19 -0700)
committerLennart Poettering <lennart@poettering.net>
Thu, 24 Sep 2020 07:22:45 +0000 (09:22 +0200)
commitfbccb980e5b48375047114777d203401a9e33c6c
treef7da1fa0e018f29462d97f082f4b3415d15fe5f1
parent6de6f4891f0a051cf317dcc65e49d21b3ca1783c
random-util: Add an environment variable to disable RDRAND.

SYSTEMD_RDRAND=0 will prevent using RDRAND even on systems whose CPUID claims
to support it. All other values have no effect.

Fixes: #17112
docs/ENVIRONMENT.md
src/basic/random-util.c