forked from len0rd/rockbox
Better random
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1120 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
28bb3033a5
commit
c7e4f828d5
1 changed files with 1 additions and 4 deletions
|
|
@ -103,12 +103,9 @@ static const char block_data[7][4][2][4] =
|
|||
}
|
||||
};
|
||||
|
||||
/* not even pseudo random :) */
|
||||
int t_rand(int range)
|
||||
{
|
||||
static int count;
|
||||
count++;
|
||||
return count % range;
|
||||
return current_tick % range;
|
||||
}
|
||||
|
||||
void draw_frame(int fstart_x,int fstop_x,int fstart_y,int fstop_y)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue