mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-27 12:26:24 +00:00
Make mg_random() fallible. Abort TLS on weak RNG
This commit is contained in:
1 parent
44b3d60692
commit
683f65f8ac
62 files changed
+253
-111
No files matched your search
+1
-1
@@ -12,7 +12,7 @@
|
||||
#endif
|
||||
|
||||
void mg_bzero(volatile unsigned char *buf, size_t len);
|
||||
void mg_random(void *buf, size_t len);
|
||||
bool mg_random(void *buf, size_t len);
|
||||
char *mg_random_str(char *buf, size_t len);
|
||||
uint16_t mg_ntohs(uint16_t net);
|
||||
uint32_t mg_ntohl(uint32_t net);
|
||||
|
||||
Reference in new issue
Block a user