aboutsummaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-10-22 16:27:54 +0000
committerSimon Tatham <anakin@pobox.com>2005-10-22 16:27:54 +0000
commit23ab000b7b038b6810e48a71a94b8287c20a6047 (patch)
tree1e8bcd5adc7c7d3b8179a954bc0e7c1c50cec7af /net.c
parent4faecc77264b6d3e84ae24707af5593490f36796 (diff)
downloadpuzzles-23ab000b7b038b6810e48a71a94b8287c20a6047.zip
puzzles-23ab000b7b038b6810e48a71a94b8287c20a6047.tar.gz
puzzles-23ab000b7b038b6810e48a71a94b8287c20a6047.tar.bz2
puzzles-23ab000b7b038b6810e48a71a94b8287c20a6047.tar.xz
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]
Diffstat (limited to 'net.c')
-rw-r--r--net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net.c b/net.c
index f8811a7..3e49b38 100644
--- a/net.c
+++ b/net.c
@@ -1804,7 +1804,7 @@ static game_ui *new_ui(game_state *state)
ui->cur_y = ui->cy = state->height / 2;
ui->cur_visible = FALSE;
get_random_seed(&seed, &seedsize);
- ui->rs = random_init(seed, seedsize);
+ ui->rs = random_new(seed, seedsize);
sfree(seed);
return ui;