libsaria: Tune random next()

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
Bryan Schumaker 2012-11-08 08:10:17 -05:00
parent beb9019057
commit 5e456ad64c
2 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,8 @@
#include <idle.h>
#include <fs.h>
#include <stdlib.h>
static libsaria::Track outside_track;
static libsaria::initdata *app_data;

View File

@ -104,7 +104,7 @@ namespace libsaria
return NULL;
if (check_flag(PL_RANDOM))
cur += rand() % get_size();
cur += rand() % ((get_size() * 3) / 4);
else if (flags & PL_NO_DRAIN)
cur++;