diff options
author | Nicholas Tay <nick@windblume.net> | 2022-01-11 20:12:21 +1100 |
---|---|---|
committer | Nicholas Tay <nick@windblume.net> | 2022-01-11 20:12:21 +1100 |
commit | 1332b7c50b4b75b848df19dd357071320c39ffa7 (patch) | |
tree | 22226edafb429d59a57fe5bedab3aa58046ec729 /passgen.c | |
parent | 00fb165cb4bdcbe4e3f2a4d2a84e401e6df3c8f5 (diff) | |
download | passgen-1332b7c50b4b75b848df19dd357071320c39ffa7.tar.gz passgen-1332b7c50b4b75b848df19dd357071320c39ffa7.tar.bz2 passgen-1332b7c50b4b75b848df19dd357071320c39ffa7.zip |
Enforce unsigned int for RNG generation
Need this for it to work properly, I think with the mod
Diffstat (limited to 'passgen.c')
-rw-r--r-- | passgen.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -58,10 +58,10 @@ void init_rng(void) #endif } -int get_rng(void) +unsigned int get_rng(void) { #ifdef USE_GETENTROPY - int r; + unsigned int r; getentropy(&r, sizeof(r)); return r; #else |