diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-04-20 02:43:45 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-04-20 02:43:45 +0200 |
commit | f68fee47892fc528847682afc003097dcee9a765 (patch) | |
tree | 44e91419333c49887ebd16f023cf018e060139a1 | |
parent | Loop read/write across signals (diff) | |
download | seedrng-master.tar.xz seedrng-master.zip |
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | seedrng.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -60,7 +60,7 @@ struct blake2s_state { static inline void cpu_to_le32_array(uint32_t *buf, unsigned int words) { - while (words--) { + while (words--) { *buf = cpu_to_le32(*buf); ++buf; } @@ -68,10 +68,10 @@ static inline void cpu_to_le32_array(uint32_t *buf, unsigned int words) static inline void le32_to_cpu_array(uint32_t *buf, unsigned int words) { - while (words--) { + while (words--) { *buf = le32_to_cpup(buf); ++buf; - } + } } static inline uint32_t ror32(uint32_t word, unsigned int shift) |