mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-11-14 08:35:04 +08:00
Update rand_bytes()
This commit is contained in:
@@ -14,7 +14,9 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <unistd.h> // in Linux
|
||||
//#include <sys/random.h> // in Apple
|
||||
#ifdef APPLE
|
||||
#include <sys/random.h> // in Apple
|
||||
#endif
|
||||
#include <gmssl/rand.h>
|
||||
#include <gmssl/error.h>
|
||||
|
||||
@@ -37,4 +39,3 @@ int rand_bytes(uint8_t *buf, size_t len)
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user