aboutsummaryrefslogtreecommitdiff
path: root/passgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'passgen.c')
-rw-r--r--passgen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/passgen.c b/passgen.c
index 1215d3f..aaa2e91 100644
--- a/passgen.c
+++ b/passgen.c
@@ -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