summaryrefslogtreecommitdiff
path: root/source/pdf
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2014-02-18 11:13:19 +0100
committerTor Andersson <tor.andersson@artifex.com>2014-03-20 13:37:42 +0100
commite1df335c5567bacea25ee0f4c6322584d1dcd901 (patch)
tree07eba9b0a44e49a4feae0352f335e61fd4abfa03 /source/pdf
parentd4bf92cbf5983f96df2039eb6cb501f1912918c8 (diff)
downloadmupdf-e1df335c5567bacea25ee0f4c6322584d1dcd901.tar.xz
pdf-js.c: Use different random number.
0.4 is not exactly representable using floats, and libjs uses a different atod function than v8.
Diffstat (limited to 'source/pdf')
-rw-r--r--source/pdf/js/pdf-js.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/js/pdf-js.c b/source/pdf/js/pdf-js.c
index b6129bfa..f18da8ac 100644
--- a/source/pdf/js/pdf-js.c
+++ b/source/pdf/js/pdf-js.c
@@ -761,7 +761,7 @@ static void preload_helpers(pdf_js *js)
"Date.now = function() { return 298252800000; }\n"
"Date.UTC = function() { return 298252800000; }\n"
"Date.parse = MuPDFOldDate.parse;\n"
-"Math.random = function() { return 0.4; }\n"
+"Math.random = function() { return 1/4; }\n"
);
#endif