summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/svg/svg-color-test.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/svg/svg-color-test.h b/src/svg/svg-color-test.h
index ad25d506c..b149b7a44 100644
--- a/src/svg/svg-color-test.h
+++ b/src/svg/svg-color-test.h
@@ -1,6 +1,6 @@
-
#include <cxxtest/TestSuite.h>
#include <cassert>
+#include <cstdlib>
#include "svg/svg-color.h"
#include "svg/svg-icc-color.h"
@@ -40,6 +40,7 @@ public:
}
/* And a few completely random ones. */
+ using std::rand;
for (unsigned i = 500; i--;) { /* Arbitrary number of iterations. */
unsigned const rgb24 = (rand() >> 4) & 0xffffff;
check_rgb24(rgb24);