mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-06 19:10:40 +00:00
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:
parent
eb244eff47
commit
0dcdaf3e9a
2 changed files with 4 additions and 2 deletions
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
* Source/libgnustep-gui.def: Regenerated
|
* Source/libgnustep-gui.def: Regenerated
|
||||||
* ColorPickers/GNUmakefile: add local library paths
|
* 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>
|
Wed Feb 5 04:56:45 2003 Serg Stoyan <stoyan@hologr.com>
|
||||||
|
|
||||||
|
|
|
@ -39,12 +39,12 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* TODO: is using random() here ok? */
|
/* TODO: is using rand() here ok? */
|
||||||
static int random_level(void)
|
static int random_level(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < SKIP_LIST_DEPTH - 2; 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;
|
break;
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue