1
0
Fork 0
forked from len0rd/rockbox

Wrong typing caused a very skewed random number distribution

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5385 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2004-11-06 23:33:07 +00:00
parent 8366394933
commit 04c5ecb4ee

View file

@ -140,7 +140,7 @@ static int rand_reload(void)
int rand(void)
{
int y;
unsigned int y;
if(--left < 0) {
y = rand_reload();