From e1df335c5567bacea25ee0f4c6322584d1dcd901 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 18 Feb 2014 11:13:19 +0100 Subject: pdf-js.c: Use different random number. 0.4 is not exactly representable using floats, and libjs uses a different atod function than v8. --- source/pdf/js/pdf-js.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/pdf/js') 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 -- cgit v1.2.3