summaryrefslogtreecommitdiff
path: root/asdcplib/src/KM_prng.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'asdcplib/src/KM_prng.cpp')
-rwxr-xr-xasdcplib/src/KM_prng.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/asdcplib/src/KM_prng.cpp b/asdcplib/src/KM_prng.cpp
index e7526da1..06b22d91 100755
--- a/asdcplib/src/KM_prng.cpp
+++ b/asdcplib/src/KM_prng.cpp
@@ -141,11 +141,17 @@ public:
memcpy(buf + gen_count, tmp, len - gen_count);
}
+#ifdef LIBDCP_POSIX
if (libdcp_test)
{
for (unsigned int i = 0; i < len; ++i)
buf[i] = rand_r(&m_libdcp_test_rng_state);
}
+#endif
+
+#ifdef LIBDCP_WINDOWS
+ /* XXX */
+#endif
}
};