summaryrefslogtreecommitdiffstats
path: root/debian/mp4v2/mp4v2-2.0.0~dfsg0/libplatform/number/random_posix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'debian/mp4v2/mp4v2-2.0.0~dfsg0/libplatform/number/random_posix.cpp')
-rw-r--r--debian/mp4v2/mp4v2-2.0.0~dfsg0/libplatform/number/random_posix.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/mp4v2/mp4v2-2.0.0~dfsg0/libplatform/number/random_posix.cpp b/debian/mp4v2/mp4v2-2.0.0~dfsg0/libplatform/number/random_posix.cpp
new file mode 100644
index 00000000..0bdcd1db
--- /dev/null
+++ b/debian/mp4v2/mp4v2-2.0.0~dfsg0/libplatform/number/random_posix.cpp
@@ -0,0 +1,24 @@
+#include "libplatform/impl.h"
+#include <stdlib.h>
+
+namespace mp4v2 { namespace platform { namespace number {
+
+///////////////////////////////////////////////////////////////////////////////
+
+uint32_t
+random32()
+{
+ return uint32_t( ::random() );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+
+void
+srandom( uint32_t seed )
+{
+ ::srandom( seed );
+}
+
+///////////////////////////////////////////////////////////////////////////////
+
+}}} // namespace mp4v2::platform::time