working on fake values
This commit is contained in:
@@ -23,7 +23,7 @@ return v1 ^ v2;
|
||||
/* --------------------------------------------------------------- */
|
||||
int random1000(int type)
|
||||
{
|
||||
int value;
|
||||
int value, foo;
|
||||
|
||||
#if DEBUG_LEVEL > 1
|
||||
fprintf(stderr, ">>> %s(%d)\n", __func__, type);
|
||||
@@ -36,6 +36,12 @@ switch (type) {
|
||||
case 1:
|
||||
value = (rand()%1000 + rand()%1000) / 2;
|
||||
break;
|
||||
case 4:
|
||||
value = 0;
|
||||
for (foo=0; foo<4; foo++)
|
||||
value += rand() % 1000;
|
||||
value /= 4;
|
||||
break;
|
||||
default:
|
||||
value = -1;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user