mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 23:51:29 -07:00
Cleanup: rename random_init() to random_new(), because it actually
_allocates_ a random_state rather than just initialising one passed in by the caller. [originally from svn r6412]
This commit is contained in:
4
midend.c
4
midend.c
@ -102,7 +102,7 @@ midend *midend_new(frontend *fe, const game *ourgame,
|
||||
|
||||
me->frontend = fe;
|
||||
me->ourgame = ourgame;
|
||||
me->random = random_init(randseed, randseedsize);
|
||||
me->random = random_new(randseed, randseedsize);
|
||||
me->nstates = me->statesize = me->statepos = 0;
|
||||
me->states = NULL;
|
||||
me->params = ourgame->default_params();
|
||||
@ -342,7 +342,7 @@ void midend_new_game(midend *me)
|
||||
sfree(me->aux_info);
|
||||
me->aux_info = NULL;
|
||||
|
||||
rs = random_init(me->seedstr, strlen(me->seedstr));
|
||||
rs = random_new(me->seedstr, strlen(me->seedstr));
|
||||
/*
|
||||
* If this midend has been instantiated without providing a
|
||||
* drawing API, it is non-interactive. This means that it's
|
||||
|
Reference in New Issue
Block a user