Files
precompile/sr25519/donna/sr25519-randombytes.h
zeekay 6322ce6797 fix: vendor sr25519-donna C files directly (no git submodule)
Git submodules don't work with Go module proxy — go get can't fetch
the submodule contents. Vendored the src/ directory from
TerenceGe/sr25519-donna directly into sr25519/donna/.

Updated unity build paths (donna/src/ → donna/) and CGO CFLAGS.
All 8 sr25519 tests pass.
2026-03-02 02:46:03 +00:00

19 lines
284 B
C

#ifndef __SR25519_RANDOM_H__
#define __SR25519_RANDOM_H__
#if defined(SR25519_CUSTOMRANDOM)
#include "sr25519-randombytes-custom.h"
#else
#include "sr25519-randombytes-default.h"
static void sr25519_randombytes(void *p, size_t len) {
randombytes_buf(p, len);
}
#endif
#endif