diff options
author | Benny Prijono <bennylp@teluu.com> | 2005-10-31 21:02:30 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2005-10-31 21:02:30 +0000 |
commit | b5a1af6f999820564ead4867b1e5d5574778ee56 (patch) | |
tree | 8323d870699994f8b75001f961fd5e1780c0f76a /pjlib/src/pj/rand.c |
initial import
git-svn-id: http://svn.pjsip.org/repos/pjproject/main@1 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj/rand.c')
-rw-r--r-- | pjlib/src/pj/rand.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pjlib/src/pj/rand.c b/pjlib/src/pj/rand.c new file mode 100644 index 00000000..6d25670f --- /dev/null +++ b/pjlib/src/pj/rand.c @@ -0,0 +1,29 @@ +/* $Header: /pjproject-0.3/pjlib/src/pj/rand.c 3 10/14/05 12:26a Bennylp $ */
+/* $Log: /pjproject-0.3/pjlib/src/pj/rand.c $
+ *
+ * 3 10/14/05 12:26a Bennylp
+ * Finished error code framework, some fixes in ioqueue, etc. Pretty
+ * major.
+ *
+ * 2 9/17/05 10:37a Bennylp
+ * Major reorganization towards version 0.3.
+ *
+ * 1 9/15/05 8:40p Bennylp
+ * Created.
+ */
+#include <pj/rand.h>
+#include <pj/os.h>
+#include <pj/compat/rand.h>
+
+PJ_DEF(void) pj_srand(unsigned int seed)
+{
+ PJ_CHECK_STACK();
+ platform_srand(seed);
+}
+
+PJ_DEF(int) pj_rand(void)
+{
+ PJ_CHECK_STACK();
+ return platform_rand();
+}
+
|