X-Git-Url: https://www.bearssl.org/gitweb//home/git/?p=BearSSL;a=blobdiff_plain;f=src%2Fconfig.h;h=accae3e46d2d940780d95b27752d0895320134ff;hp=b06807b1c9a8dba45db10a5058c078c67c7e08b2;hb=8e94ad2fcb11794c559025277e56f3fbeb676f5d;hpb=24c6f09bf83015e04e16666e8a5fb66e75967e0d;ds=sidebyside diff --git a/src/config.h b/src/config.h index b06807b..accae3e 100644 --- a/src/config.h +++ b/src/config.h @@ -98,6 +98,17 @@ #define BR_NO_ARITH_SHIFT 1 */ +/* + * When BR_RDRAND is enabled, the SSL engine will use the RDRAND opcode + * to automatically obtain quality randomness for seeding its internal + * PRNG. Since that opcode is present only in recent x86 CPU, its + * support is dynamically tested; if the current CPU does not support + * it, then another random source will be used, such as /dev/urandom or + * CryptGenRandom(). + * +#define BR_RDRAND 1 + */ + /* * When BR_USE_URANDOM is enabled, the SSL engine will use /dev/urandom * to automatically obtain quality randomness for seedings its internal