Skip to content

Commit aa60715

Browse files
committed
Add comments about raw random integer functions & garbage collection
[ci skip]
1 parent a96e314 commit aa60715

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

M2/Macaulay2/e/interface/random.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ int32_t rawRandomInt(int32_t max);
2727

2828
void rawSetRandomInteger(mpz_ptr result, gmp_ZZ maxN);
2929
/* if height is the null pointer, use the default height */
30+
/* doesn't deal w/ garbage collection */
3031

3132
gmp_ZZ rawRandomInteger(gmp_ZZ maxN);
3233
/* if height is the null pointer, use the default height */
34+
/* returns garbage-collected memory */
3335

3436
void rawSetFareyApproximation(mpq_ptr result, gmp_RR x, gmp_ZZ height);
3537
/* sets result = the nearest rational to x w/ denominator <= height */

0 commit comments

Comments
 (0)