diff --git a/src/do_name.c b/src/do_name.c index 753c509f1..2cfd935a4 100644 --- a/src/do_name.c +++ b/src/do_name.c @@ -1250,7 +1250,7 @@ register struct obj *obj; /* for "the Foo of Bar", only scuff "Foo of Bar" part */ bufp = !strncmpi(bufcpy, "the ", 4) ? (buf + 4) : buf; do { - wipeout_text(bufp, rnd(2), (unsigned) 0); + wipeout_text(bufp, rn2_on_display_rng(2), (unsigned) 0); } while (!strcmp(buf, bufcpy)); pline("While engraving, your %s slips.", body_part(HAND)); display_nhwindow(WIN_MESSAGE, FALSE);