tools/regression/aio/aiotest/aiotest.c
/*
 * Fill a buffer given a seed that can be fed into srandom() to initialize
 * the PRNG in a repeatable manner.
 */
Fill a buffer given a seed that can be fed into srandom() to initialize
the PRNG in a repeatable manner.
Fill a buffer given a seed that can be fed into srandom () to initialize the PRNG in a repeatable manner .
static void
aio_fill_buffer(char *buffer, int len, long seed)
{
	char ch;
	int i;
	srandom(seed);
	for (i = 0; i < len; i++) {
		ch = random() & 0xff;
		buffer[i] = ch;
	}
}
static void aio_fill_buffer ( char * buffer , int len , long seed ) { char ch ; int i ; srandom ( seed ) ; for ( i = 0 ; i < len ; i ++ ) { ch = random ( ) & 0xff ; buffer [ i ] = ch ; } }
Fill a buffer given a seed that can be fed into srandom() to initialize
 the PRNG in a repeatable manner.
Fill a buffer given a seed that can be fed into srandom () to initialize the PRNG in a repeatable manner .