mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-15 12:56:28 +08:00
Update CMake options of RDRND
Separate CMake option of rdrand and rdseed. In some CPUs only rdrand is supported.
This commit is contained in:
@@ -32,6 +32,7 @@ int rdrand_bytes(uint8_t *buf, size_t buflen)
|
||||
return 1;
|
||||
}
|
||||
|
||||
#ifdef INTEL_RDSEED
|
||||
int rdseed_bytes(uint8_t *buf, size_t buflen)
|
||||
{
|
||||
unsigned long long val;
|
||||
@@ -49,3 +50,4 @@ int rdseed_bytes(uint8_t *buf, size_t buflen)
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user