0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-10-18 09:58:43 +00:00

Birdtest: move def bt_rand_num() at a better place

This commit is contained in:
Pavel Tvrdík 2015-04-03 12:44:47 +02:00
parent 4b5e005d57
commit 1bdf2a54ed

View File

@ -28,6 +28,13 @@ int bt_verbose;
const char *bt_filename;
const char *bt_test_id;
int
bt_rand_num(void)
{
/* Seeded in bt_init() */
return random();
}
void
bt_init(int argc, char *argv[])
{
@ -175,8 +182,3 @@ bt_test_case5(int (*test_fn)(void), const char *test_id, const char *dsc, int fo
bt_note("OK");
}
int
bt_rand_num(void)
{
return random();
}