diff options
Diffstat (limited to 'c/enc/block_splitter.c')
-rw-r--r-- | c/enc/block_splitter.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/c/enc/block_splitter.c b/c/enc/block_splitter.c index a870885..0331146 100644 --- a/c/enc/block_splitter.c +++ b/c/enc/block_splitter.c @@ -74,11 +74,9 @@ static void CopyLiteralsToByteArray(const Command* cmds, } } -static BROTLI_INLINE unsigned int MyRand(unsigned int* seed) { +static BROTLI_INLINE uint32_t MyRand(uint32_t* seed) { + /* Initial seed should be 7. In this case, loop length is (1 << 29). */ *seed *= 16807U; - if (*seed == 0) { - *seed = 1; - } return *seed; } |