1
0
Fork 0
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:
Björn Stenberg 2002-06-20 09:40:51 +00:00
parent 28bb3033a5
commit c7e4f828d5

View file

@ -103,12 +103,9 @@ static const char block_data[7][4][2][4] =
} }
}; };
/* not even pseudo random :) */
int t_rand(int range) int t_rand(int range)
{ {
static int count; return current_tick % range;
count++;
return count % range;
} }
void draw_frame(int fstart_x,int fstop_x,int fstart_y,int fstop_y) void draw_frame(int fstart_x,int fstop_x,int fstart_y,int fstop_y)