commit | c0acb0da8d87fcaef2675dbd2e72900234c7f776 | [log] [tgz] |
---|---|---|
author | Choongwoo Han <cwhan.tunz@gmail.com> | Sat Oct 15 17:34:11 2016 +0900 |
committer | Choongwoo Han <cwhan.tunz@gmail.com> | Sat Oct 15 17:34:11 2016 +0900 |
tree | bfa5ea56552c5d69e24e99650dcc87bb4033d820 | |
parent | 030034e5e508875858d68dc53efab734dbe9835a [diff] |
Bug fix: rndBuf was generating only 0 or 1 value
diff --git a/util.c b/util.c index 7adae55..4b6d806 100644 --- a/util.c +++ b/util.c
@@ -127,7 +127,7 @@ void util_rndBuf(uint8_t * buf, size_t sz) { for (size_t i = 0; i < sz; i++) { - buf[i] = (uint8_t) ((util_rnd64() & 0xFF0000) > 16); + buf[i] = (uint8_t) ((util_rnd64() & 0xFF0000) >> 16); } }