This repository has been archived on 2021-05-26. You can view files and clone it, but cannot push or open issues or pull requests.
OS/pintos-env/pintos/tests/filesys/base/seq-random.inc

23 lines
349 B
PHP
Raw Permalink Normal View History

/* -*- c -*- */
#include <random.h>
#include "tests/filesys/seq-test.h"
#include "tests/main.h"
static char buf[TEST_SIZE];
static size_t
return_random (void)
{
return random_ulong () % 1031 + 1;
}
void
test_main (void)
{
random_init (-1);
seq_test ("nibble",
buf, sizeof buf, sizeof buf,
return_random, NULL);
}