Loading...
--- Libc/Libc-320/gen/arc4random.c
+++ Libc/Libc-391/gen/arc4random.c
@@ -2,8 +2,6 @@
* Copyright (c) 2003 Apple Computer, Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
- *
- * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
@@ -64,6 +62,7 @@
static int rs_initialized;
static struct arc4_stream *rs = NULL;
+static inline void arc4_init(struct arc4_stream *) __attribute__((always_inline));
static inline void
arc4_init(as)
struct arc4_stream *as;
@@ -76,6 +75,7 @@
as->j = 0;
}
+static inline void arc4_addrandom(struct arc4_stream *, u_char *, int) __attribute__((always_inline));
static inline void
arc4_addrandom(as, dat, datlen)
struct arc4_stream *as;
@@ -119,6 +119,7 @@
arc4_addrandom(as, (void *) &rdat, sizeof(rdat));
}
+static inline u_int8_t arc4_getbyte(struct arc4_stream *) __attribute__((always_inline));
static inline u_int8_t
arc4_getbyte(as)
struct arc4_stream *as;
@@ -134,6 +135,7 @@
return (as->s[(si + sj) & 0xff]);
}
+static inline u_int32_t arc4_getword(struct arc4_stream *) __attribute__((always_inline));
static inline u_int32_t
arc4_getword(as)
struct arc4_stream *as;