diff options
author | Iru Cai <mytbk920423@gmail.com> | 2018-11-20 20:45:21 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2018-11-20 20:45:21 +0800 |
commit | 38f3cc71a08dd24696f0fead560e5675f24c6825 (patch) | |
tree | 77d79f9bc5c742468458fe0ef6931095602cb288 /source/pdf | |
parent | bf1dbab139072296360e6ed3610870f8ea4155d7 (diff) | |
download | mupdf-38f3cc71a08dd24696f0fead560e5675f24c6825.tar.xz |
more cleaning
Diffstat (limited to 'source/pdf')
-rw-r--r-- | source/pdf/pdf-crypt.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/source/pdf/pdf-crypt.c b/source/pdf/pdf-crypt.c index b5a96c1b..88b69834 100644 --- a/source/pdf/pdf-crypt.c +++ b/source/pdf/pdf-crypt.c @@ -78,33 +78,6 @@ static void fcn_40c120(mt19937* ctx) uint32_t mt19937_next(mt19937 *ctx) { - uint32_t eax = ctx->n; - if (eax == 624) { - fcn_40c120(ctx); - } else if (eax >= 1248) { - fcn_40c060(ctx); - } - eax = ctx->n; - uint32_t edx = ctx->MT[eax]; - eax++; - ctx->n = eax; - uint32_t ecx = edx; - eax = ctx->cc; - ecx >>= 11; - eax &= ecx; - edx ^= eax; - eax = edx & 0xff3a58ad; - eax <<= 7; - edx ^= eax; - eax = edx; - eax &= 0xffffdf8c; - eax <<= 15; - edx ^= eax; - eax = edx; - eax >>= 0x12; - eax ^= edx; - return eax; -#if 0 int n = ctx->n; uint32_t eax, edx; @@ -122,7 +95,6 @@ uint32_t mt19937_next(mt19937 *ctx) edx ^= eax; eax = edx >> 18; return eax ^ edx; -#endif } void mt19937_init(mt19937 *ctx, uint32_t seed) |