aboutsummaryrefslogtreecommitdiff
path: root/libplatform/number/random.h
diff options
context:
space:
mode:
Diffstat (limited to 'libplatform/number/random.h')
-rw-r--r--libplatform/number/random.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/libplatform/number/random.h b/libplatform/number/random.h
new file mode 100644
index 0000000..9d0f105
--- /dev/null
+++ b/libplatform/number/random.h
@@ -0,0 +1,18 @@
+#ifndef MP4V2_PLATFORM_NUMBER_RANDOM_H
+#define MP4V2_PLATFORM_NUMBER_RANDOM_H
+
+namespace mp4v2 { namespace platform { namespace number {
+
+///////////////////////////////////////////////////////////////////////////////
+
+/// Generate 32-bit pseudo-random number.
+MP4V2_EXPORT uint32_t random32();
+
+/// Seed pseudo-random number generator.
+MP4V2_EXPORT void srandom( uint32_t );
+
+///////////////////////////////////////////////////////////////////////////////
+
+}}} // namespace mp4v2::platform::number
+
+#endif // MP4V2_PLATFORM_NUMBER_RANDOM_H