From 4fe12823a6c86e647cfd8ad32feedf50ad6f06bf Mon Sep 17 00:00:00 2001 From: Owain Ainsworth Date: Mon, 23 Mar 2009 22:07:42 +0000 Subject: turn a for (i = 0; i < size; i++) arc4random(); loop into arc4random_buf(). Since that function is now so small (2 lines), inline it into it's only user. Shaves some bytes (104 on amd64). ok deraadt@, blambert@. djm@ liked an earlier diff. --- sys/uvm/uvm_swap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/uvm/uvm_swap.c') diff --git a/sys/uvm/uvm_swap.c b/sys/uvm/uvm_swap.c index c32844a1425..38de9a4ec46 100644 --- a/sys/uvm/uvm_swap.c +++ b/sys/uvm/uvm_swap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_swap.c,v 1.86 2009/03/20 15:19:04 oga Exp $ */ +/* $OpenBSD: uvm_swap.c,v 1.87 2009/03/23 22:07:41 oga Exp $ */ /* $NetBSD: uvm_swap.c,v 1.40 2000/11/17 11:39:39 mrg Exp $ */ /* @@ -52,6 +52,7 @@ #include #ifdef UVM_SWAP_ENCRYPT +#include #include #endif -- cgit v1.2.3