summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/syscall/getrandom.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/syscall/getrandom.c')
-rw-r--r--usr/src/uts/common/syscall/getrandom.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/uts/common/syscall/getrandom.c b/usr/src/uts/common/syscall/getrandom.c
index af4454a154..555cc99694 100644
--- a/usr/src/uts/common/syscall/getrandom.c
+++ b/usr/src/uts/common/syscall/getrandom.c
@@ -10,7 +10,7 @@
*/
/*
- * Copyright (c) 2015, Joyent, Inc.
+ * Copyright (c) 2018, Joyent, Inc.
*/
/*
@@ -36,8 +36,8 @@
#define MAXRANDBYTES 1024
#define MAXURANDBYTES INT_MAX
-int
-getrandom(void *bufp, size_t buflen, int flags)
+ssize_t
+getrandom(void *bufp, size_t buflen, unsigned int flags)
{
int out = 0;
uint8_t rbytes[128];