fix linux-specific compilation errors
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#include <fcntl.h>
|
||||
#include <stdint.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
uint64_t z__c_platform_random_seed()
|
||||
uint64_t z__b_platform_random_seed()
|
||||
{
|
||||
int fd = open("/dev/urandom", O_RDONLY);
|
||||
if (fd == -1) {
|
||||
@@ -18,7 +18,7 @@ uint64_t z__c_platform_random_seed()
|
||||
return v;
|
||||
}
|
||||
|
||||
uint64_t z__c_platform_random_seed_secure()
|
||||
uint64_t z__b_platform_random_seed_secure()
|
||||
{
|
||||
int fd = open("/dev/random", O_RDONLY);
|
||||
if (fd == -1) {
|
||||
|
||||
Reference in New Issue
Block a user