summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2020-09-01 19:18:26 +0000
committertb <tb@openbsd.org>2020-09-01 19:18:26 +0000
commit2d4957910cfa0d4d8dd47e54855272f3b5371045 (patch)
tree76d66aa3d6bdc16d4580c9e36c5ed07be92ae1fb
parentZero out data to avoid leaving stack garbage in the tail of (diff)
downloadwireguard-openbsd-2d4957910cfa0d4d8dd47e54855272f3b5371045.tar.xz
wireguard-openbsd-2d4957910cfa0d4d8dd47e54855272f3b5371045.zip
zap nasty whitespace
-rw-r--r--sys/net/toeplitz.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/toeplitz.c b/sys/net/toeplitz.c
index dd54c3c2c29..ab4b19f8d2d 100644
--- a/sys/net/toeplitz.c
+++ b/sys/net/toeplitz.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: toeplitz.c,v 1.8 2020/07/17 13:13:36 tb Exp $ */
+/* $OpenBSD: toeplitz.c,v 1.9 2020/09/01 19:18:26 tb Exp $ */
/*
* Copyright (c) 2009 The DragonFly Project. All rights reserved.
@@ -67,7 +67,7 @@
static stoeplitz_key stoeplitz_keyseed = STOEPLITZ_KEYSEED;
static struct stoeplitz_cache stoeplitz_syskey_cache;
const struct stoeplitz_cache *const
- stoeplitz_cache = &stoeplitz_syskey_cache;
+ stoeplitz_cache = &stoeplitz_syskey_cache;
/* parity of n16: count (mod 2) of ones in the binary representation. */
int
@@ -89,7 +89,7 @@ stoeplitz_key
stoeplitz_random_seed(void)
{
stoeplitz_key seed;
-
+
seed = arc4random() & UINT16_MAX;
if (parity(seed) == 0)
seed ^= 1;