summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2004-02-23 20:42:03 +0000
committergreen <green@FreeBSD.org>2004-02-23 20:42:03 +0000
commiteadc6af144d81c25bf574b2e33c9d4ab2e056824 (patch)
tree75793c3e558dc706786c974b664f4956b278a138
parentcf29d0ac9ebee8b74aec2d6595b28c84882300e9 (diff)
downloadFreeBSD-src-eadc6af144d81c25bf574b2e33c9d4ab2e056824.zip
FreeBSD-src-eadc6af144d81c25bf574b2e33c9d4ab2e056824.tar.gz
Apply style(9).
Submitted by: "Christian S.J. Peron" <maneo@bsdpro.com> PR: bin/63283
-rw-r--r--lib/libc/gen/arc4random.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/gen/arc4random.c b/lib/libc/gen/arc4random.c
index 522949a..16dc80f 100644
--- a/lib/libc/gen/arc4random.c
+++ b/lib/libc/gen/arc4random.c
@@ -122,6 +122,7 @@ arc4_getbyte(as)
sj = as->s[as->j];
as->s[as->i] = sj;
as->s[as->j] = si;
+
return (as->s[(si + sj) & 0xff]);
}
@@ -130,11 +131,13 @@ arc4_getword(as)
struct arc4_stream *as;
{
u_int32_t val;
+
val = arc4_getbyte(as) << 24;
val |= arc4_getbyte(as) << 16;
val |= arc4_getbyte(as) << 8;
val |= arc4_getbyte(as);
- return val;
+
+ return (val);
}
void
@@ -162,7 +165,8 @@ arc4random()
{
if (!rs_initialized)
arc4random_stir();
- return arc4_getword(&rs);
+
+ return (arc4_getword(&rs));
}
#if 0
OpenPOWER on IntegriCloud