]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
replay: divide by bits-per-byte
authorJason A. Donenfeld <Jason@zx2c4.com>
Mon, 7 Sep 2020 16:51:49 +0000 (18:51 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 7 Sep 2020 16:51:49 +0000 (18:51 +0200)
commit0cfa3314ee2740cd94cf7064cc79fdea7b1e0dde
treef225f3d30cd2e9dce8ed0fe08f031a3c6a7660a4
parentbc3f505efa9f4f780d21165311df34ca0e8d7e20
replay: divide by bits-per-byte

Bits / Bytes-per-Word misses the step of also dividing by Bits-per-Byte,
which we need in order for this to make sense.

Reported-by: Riobard Zhan <me@riobard.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
replay/replay.go