fix linux-specific compilation errors

This commit is contained in:
2024-10-27 15:36:14 +00:00
parent e77c3908eb
commit a86291ca75
5 changed files with 15 additions and 11 deletions

View File

@@ -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) {