[beast/win32] Added sfi_os_srand48(), which wraps Birnet::OS::srand48().
- From: Stefan Westerfeld <stw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [beast/win32] Added sfi_os_srand48(), which wraps Birnet::OS::srand48().
- Date: Fri, 4 Sep 2009 18:45:16 +0000 (UTC)
commit 9428990a8eb3b6e26bace1923ff6328430ef7cf9
Author: Stefan Westerfeld <stefan space twc de>
Date: Wed Sep 2 08:46:51 2009 +0200
Added sfi_os_srand48(), which wraps Birnet::OS::srand48().
Patch based on 008_misc_fixes.diff.
sfi/sfiwrapper.cc | 5 +++++
sfi/sfiwrapper.h | 1 +
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/sfi/sfiwrapper.cc b/sfi/sfiwrapper.cc
index b9e8f59..3f7965f 100644
--- a/sfi/sfiwrapper.cc
+++ b/sfi/sfiwrapper.cc
@@ -360,5 +360,10 @@ sfi_os_memcpy4 (uint32 *dest, const uint32 *src, size_t count)
Birnet::OS::memcpy4 (dest, src, count);
}
+void
+sfi_os_srand48 (int32 seedval)
+{
+ Birnet::OS::srand48 (seedval);
+}
/* vim:set ts=8 sts=2 sw=2: */
diff --git a/sfi/sfiwrapper.h b/sfi/sfiwrapper.h
index 5883655..ba4dd1f 100644
--- a/sfi/sfiwrapper.h
+++ b/sfi/sfiwrapper.h
@@ -290,6 +290,7 @@ bool sfi_os_stat_is_link (mode_t mode); /* S_ISLNK */
int sfi_os_mkdir (const char *path, mode_t mode);
void sfi_os_memset4 (uint32 *dest, uint32 ch, size_t count);
void sfi_os_memcpy4 (uint32 *dest, const uint32 *src, size_t count);
+void sfi_os_srand48 (int32 seedval);
BIRNET_EXTERN_C_END();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]