From 2dcfd43b0ee4b264e854349cb3e215b7965dfdfb Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Tue, 17 Sep 2024 20:43:30 -0400 Subject: [PATCH] Fix "random" example for GF 11 We were creating 100 different instances of GF 11, so the hash codes were all different and we were getting a Tally object w/ 100 different key-value pairs! --- M2/Macaulay2/packages/Macaulay2Doc/functions/random-doc.m2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/M2/Macaulay2/packages/Macaulay2Doc/functions/random-doc.m2 b/M2/Macaulay2/packages/Macaulay2Doc/functions/random-doc.m2 index d270a83ae2..da4a2e2688 100644 --- a/M2/Macaulay2/packages/Macaulay2Doc/functions/random-doc.m2 +++ b/M2/Macaulay2/packages/Macaulay2Doc/functions/random-doc.m2 @@ -84,7 +84,7 @@ Node Example random RR random CC_100 - tally for i to 100 list random GF 11 + kk = GF 11; tally for i to 100 list random kk random GF(2,40) SeeAlso setRandomSeed