/*
* Generate random C declarations for testing.
- * Copyright © 2012, 2020 Nick Bowler
+ * Copyright © 2012, 2020, 2022 Nick Bowler
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
test_print_options(lopts);
}
-static struct cdecl *random_decl(struct gen_rng *rng)
+static struct cdecl *random_decl(struct test_rng *rng)
{
struct cdecl *decl;
unsigned flags = 0;
int main(int argc, char **argv)
{
const char *seed = "", *count_str = NULL;
- struct gen_rng *rng;
+ struct test_rng *rng;
struct cdecl *decl;
unsigned long count = 0;
int opt, mode = MODE_CDECL;
return EXIT_FAILURE;
}
- rng = gen_alloc_rng(seed);
+ rng = test_rng_alloc(seed);
if (!rng)
return EXIT_FAILURE;
free(decl);
}
- gen_free_rng(rng);
+ test_rng_free(rng);
return EXIT_SUCCESS;
}