40 #ifndef HAVE_SECURE_RANDOM
47 BCRYPT_ALG_HANDLE hAlg =
NULL;
48 NTSTATUS hr = BCryptOpenAlgorithmProvider(&hAlg, BCRYPT_RNG_ALGORITHM, MS_PRIMITIVE_PROVIDER, 0);
49 if (!BCRYPT_SUCCESS(hr) || hAlg ==
NULL) {
53 BCryptCloseAlgorithmProvider(&hAlg, 0);
54 if (!BCRYPT_SUCCESS(hr)) {
62 #ifndef HAVE_RANDOM_UINT32
67 static bool seeded =
false;
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 static fork const void static count static fd const char const char static newpath char char char static envp time
zip_uint32_t zip_random_uint32(void)
ZIP_EXTERN bool zip_secure_random(zip_uint8_t *buffer, zip_uint16_t length)