Improve internal pre-defined constant handling

Improved the way that internal pre-defined constants are managed.
Removed unused internal pre-defined constants.  Added code to
prevent an internal pre-defined constant (that was never
allocated) from being freed.
This commit is contained in:
Landon Curt Noll
2021-11-28 20:47:52 -08:00
parent 8f449ba6d2
commit 3d300acca1
6 changed files with 181 additions and 61 deletions

View File

@@ -93,7 +93,7 @@ main(int argc, char **argv)
/*
* seed the generator
*/
prev_state = zsrandom2(seed, zconst[10]);
prev_state = zsrandom2(seed, _ten_);
if (prev_state == NULL) {
math_error("previous random state is NULL");
/*NOTREACHED*/