Portability fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15892 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2003-02-05 15:44:07 +00:00
parent 90078d0392
commit e87e07ecbb
2 changed files with 4 additions and 2 deletions

View file

@ -2,6 +2,8 @@
* Source/libgnustep-gui.def: Regenerated
* ColorPickers/GNUmakefile: add local library paths
* Source/GSLayoutManager.m: Use rand() rather than random() as it
is portable to mingw32.
Wed Feb 5 04:56:45 2003 Serg Stoyan <stoyan@hologr.com>

View file

@ -39,12 +39,12 @@
/* TODO: is using random() here ok? */
/* TODO: is using rand() here ok? */
static int random_level(void)
{
int i;
for (i = 0; i < SKIP_LIST_DEPTH - 2; i++)
if ((random() % SKIP_LIST_LEVEL_PROBABILITY) != 0)
if ((rand() % SKIP_LIST_LEVEL_PROBABILITY) != 0)
break;
return i;
}