mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +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
90078d0392
commit
e87e07ecbb
2 changed files with 4 additions and 2 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue