summaryrefslogtreecommitdiff
path: root/source/pdf
diff options
context:
space:
mode:
Diffstat (limited to 'source/pdf')
-rw-r--r--source/pdf/pdf-crypt.c28
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)