add bcrypt as windows dependency
Some checks failed
Build and Deploy / package-dist (push) Has been cancelled
Build and Deploy / deploy-itch (push) Has been cancelled
Build and Deploy / deploy-gitea (push) Has been cancelled
Build and Deploy / build-linux (push) Has been cancelled
Build and Deploy / build-windows (CLANG64) (push) Has been cancelled

This commit is contained in:
2025-04-30 14:09:11 -05:00
parent 7152ae093e
commit f3031d6cd0
2 changed files with 1 additions and 14 deletions

View File

@@ -98,6 +98,7 @@ if host_machine.system() == 'windows'
deps += cc.find_library('imm32')
deps += cc.find_library('version')
deps += cc.find_library('cfgmgr32')
deps += cc.find_library('bcrypt')
sdl3_opts.add_cmake_defines({'HAVE_ISINF': '1'}) # Hack for MSYS2
link += '-static'
endif

View File

@@ -6,20 +6,6 @@
#include "monocypher.h"
// randombytes.c - Minimal cross-platform CSPRNG shim (single file)
/*
Usage:
#include "randombytes.c"
int main() {
uint8_t buffer[32];
if (randombytes(buffer, sizeof(buffer)) != 0) {
// handle error
}
// buffer now has 32 cryptographically secure random bytes
}
*/
#include <stdint.h>
#include <stddef.h>