#include "zipint.h"
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
Go to the source code of this file.
◆ zip_random_uint32()
Definition at line 87 of file zip_random_unix.c.
88 static bool seeded =
false;
static static fork const void static count static fd const char const char static newpath char char char static envp time
ZIP_EXTERN bool zip_secure_random(zip_uint8_t *buffer, zip_uint16_t length)
References NULL, time, value, and zip_secure_random().
Referenced by create_temp_file().
◆ zip_secure_random()
Definition at line 66 of file zip_random_unix.c.
69 if ((
fd = open(
"/dev/urandom",
O_RDONLY)) < 0) {
static static fork const void static count close
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec struct timespec static rem const char static group const void length
static const z80_opcode fd[]
int read(izstream &zs, T *x, Items items)
References close, fd, length, O_RDONLY, and read().
Referenced by zip_random_uint32().