1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-05 01:53:01 +00:00

Initialize PRF with random data when it is enabled.

This commit is contained in:
Andrew Chambers
2020-08-04 12:11:05 +12:00
parent 78c3c6dafa
commit 4d4ca7bb36
6 changed files with 79 additions and 47 deletions

View File

@@ -108,6 +108,8 @@ void janet_core_cfuns(JanetTable *env, const char *regprefix, const JanetReg *cf
int janet_gettime(struct timespec *spec);
#endif
#define RETRY_EINTR(RC, CALL) do { (RC) = CALL; } while((RC) < 0 && errno == EINTR)
/* Initialize builtin libraries */
void janet_lib_io(JanetTable *env);
void janet_lib_math(JanetTable *env);