NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
DOXYGEN
random.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_LIB_RANDOM_H
24 #define MUTT_LIB_RANDOM_H
25 
26 #include <stdint.h>
27 #include <stddef.h>
28 
29 uint32_t mutt_rand32(void);
30 uint64_t mutt_rand64(void);
31 void mutt_rand_base32(char *buf, size_t buflen);
32 
33 #endif /* MUTT_LIB_RANDOM_H */
uint32_t mutt_rand32(void)
Create a 32-bit random number.
Definition: random.c:117
void mutt_rand_base32(char *buf, size_t buflen)
Fill a buffer with a base32-encoded random string.
Definition: random.c:103
uint64_t mutt_rand64(void)
Create a 64-bit random number.
Definition: random.c:130