aboutsummaryrefslogtreecommitdiff
path: root/sys/cddl/contrib/opensolaris/uts/common
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2019-04-04 01:02:50 +0000
committerConrad Meyer <cem@FreeBSD.org>2019-04-04 01:02:50 +0000
commita8a16c71287e615fff06f05c92addbe8ffc2b9e0 (patch)
treeb445dafe48a56365c05c773b15233f8bab1bbeec /sys/cddl/contrib/opensolaris/uts/common
parentd9eb18ace9d6d8cf4b1a77f3d03237e05a194c25 (diff)
downloadsrc-a8a16c71287e615fff06f05c92addbe8ffc2b9e0.tar.gz
src-a8a16c71287e615fff06f05c92addbe8ffc2b9e0.zip
Replace read_random(9) with more appropriate arc4rand(9) KPIs
Reviewed by: ae, delphij Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D19760
Notes
Notes: svn path=/head/; revision=345865
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common')
-rw-r--r--sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c b/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c
index 927325e9ede1..cab8c334d082 100644
--- a/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c
+++ b/sys/cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c
@@ -14631,7 +14631,7 @@ dtrace_state_create(struct cdev *dev, struct ucred *cred __unused)
* SI_SUB_RANDOM < SI_SUB_DTRACE_ANON therefore entropy device is
* assumed to be seeded at this point (if from Fortuna seed file).
*/
- (void) read_random(&state->dts_rstate[0], 2 * sizeof(uint64_t));
+ arc4random_buf(&state->dts_rstate[0], 2 * sizeof(uint64_t));
for (cpu_it = 1; cpu_it < NCPU; cpu_it++) {
/*
* Each CPU is assigned a 2^64 period, non-overlapping