* grid, so that repeating the same marking will give
* the same answer instead of a different one.
*/
* grid, so that repeating the same marking will give
* the same answer instead of a different one.
*/
- random_state *rs = random_init((char *)guesses->grid,
- (state->w+2)*(state->h+2) *
- sizeof(unsigned int));
+ random_state *rs = random_new((char *)guesses->grid,
+ (state->w+2)*(state->h+2) *
+ sizeof(unsigned int));
* grid, so that repeating the same marking will give
* the same answer instead of a different one.
*/
* grid, so that repeating the same marking will give
* the same answer instead of a different one.
*/
- random_state *rs = random_init((char *)guesses->grid,
- (state->w+2)*(state->h+2) *
- sizeof(unsigned int));
+ random_state *rs = random_new((char *)guesses->grid,
+ (state->w+2)*(state->h+2) *
+ sizeof(unsigned int));
/* fix up original state so the 'correct' balls end up matching the guesses,
* as we've just proved that they were equivalent. */
/* fix up original state so the 'correct' balls end up matching the guesses,
* as we've just proved that they were equivalent. */
game_anim_length,
game_flash_length,
FALSE, FALSE, game_print_size, game_print,
game_anim_length,
game_flash_length,
FALSE, FALSE, game_print_size, game_print,