]> granicus.if.org Git - nethack/commitdiff
rng bit
authornhmall <nhmall@nethack.org>
Wed, 30 Jan 2019 16:08:11 +0000 (11:08 -0500)
committernhmall <nhmall@nethack.org>
Wed, 30 Jan 2019 16:08:11 +0000 (11:08 -0500)
src/do_name.c

index 753c509f1229269e6f0a0ae15b2568014e58f1a6..2cfd935a49e47c2fa7204507515de15c6c29d9f7 100644 (file)
@@ -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);