#ifndef NOSTR_PLATFORM_H
#define NOSTR_PLATFORM_H

#include <stddef.h>

#ifdef __cplusplus
extern "C" {
#endif

/*
 * Fill buffer with cryptographically secure random bytes.
 * Returns 0 on success, -1 on failure.
 */
int nostr_platform_random(unsigned char *buf, size_t len);

#ifdef __cplusplus
}
#endif

#endif /* NOSTR_PLATFORM_H */
