This test suddenly just started failing with
[dcpomatic.git] / test / writer_test.cc
index 7b2a2db005da70e80a7c1700c2c6f1e394dac30b..76e9ddb28799aa46575e78d93bb4388ed50217f5 100644 (file)
@@ -71,7 +71,7 @@ BOOST_AUTO_TEST_CASE (interrupt_writer)
        auto image = make_shared<dcp::OpenJPEGImage>(size);
        for (int i = 0; i < 3; ++i) {
                for (int j = 0; j < (size.width * size.height); ++j) {
-                       image->data(i)[j] = rand();
+                       image->data(i)[j] = rand() % 4095;
                }
        }