3 #ifndef ED25519_NO_SEED
12 int ed25519_create_seed(unsigned char *seed) {
16 if (!CryptAcquireContext(&prov, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
20 if (!CryptGenRandom(prov, 32, seed)) {
21 CryptReleaseContext(prov, 0);
25 CryptReleaseContext(prov, 0);
27 FILE *f = fopen("/dev/urandom", "rb");
33 if(fread(seed, 32, 1, f) != 1) {