aboutsummaryrefslogtreecommitdiff
path: root/src/libsec/port/fastrand.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsec/port/fastrand.c')
-rw-r--r--src/libsec/port/fastrand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsec/port/fastrand.c b/src/libsec/port/fastrand.c
index 14571277..ca3c0195 100644
--- a/src/libsec/port/fastrand.c
+++ b/src/libsec/port/fastrand.c
@@ -2,7 +2,7 @@
#include <libc.h>
#include <libsec.h>
-/*
+/*
* use the X917 random number generator to create random
* numbers (faster than truerand() but not as random).
*/
@@ -10,7 +10,7 @@ ulong
fastrand(void)
{
ulong x;
-
+
genrandom((uchar*)&x, sizeof x);
return x;
}