X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=src%2Fmisc.h;h=bc3e274a5c2c3a181396a630f60f574123a2d889;hb=3f2b7a8d7dc649f5afecedf7b630ae964ec5bfe4;hp=fad27f6a51e890b18aa675a710f23f8c3aa4833a;hpb=350ef2e2d17e8122e2991466f76a9a083a6303e7;p=plomrogue
diff --git a/src/misc.h b/src/misc.h
index fad27f6..bc3e274 100644
--- a/src/misc.h
+++ b/src/misc.h
@@ -14,6 +14,12 @@ struct Map;
+/* Return 16-bit number pseudo-randomly generated via Linear Congruential
+ * Generator algorithm with some proven constants. Use instead of rand() to
+ * ensure portability of the same pseudo-randomness across systems.
+ */
+extern uint16_t rrand();
+
/* Returns message: "Trouble in ".parent." with ".child."." (try_*() helper) */
extern char * trouble_msg(char * parent, char * child);