Added definition of SB_MAX_RND back, was removed in the previous commit by mistake.

This commit is contained in:
Alexey Kopytov
2008-12-29 10:23:15 +00:00
parent 545a870654
commit 9edaef2391

View File

@ -50,6 +50,8 @@
#define SB_THREAD_MUTEX_LOCK() pthread_mutex_lock(&sb_globals.exec_mutex)
#define SB_THREAD_MUTEX_UNLOCK() pthread_mutex_unlock(&sb_globals.exec_mutex)
#define SB_MAX_RND 0x3fffffffu
/* random() is not thread-safe on most platforms, use lrand48() if available */
#ifdef HAVE_LRAND48
#define sb_rnd() (lrand48() % SB_MAX_RND)