From d8bbf0b01c85dbb971db9ffcc729b92195400d05 Mon Sep 17 00:00:00 2001 From: Pete Davison Date: Thu, 3 Jul 2025 21:52:10 +0000 Subject: [PATCH] fix: remove extra breaking randInt function --- internal/templater/funcs.go | 1 - website/docs/reference/templating.mdx | 1 - 2 files changed, 2 deletions(-) diff --git a/internal/templater/funcs.go b/internal/templater/funcs.go index f1b0da68b6..c3fdc469b6 100644 --- a/internal/templater/funcs.go +++ b/internal/templater/funcs.go @@ -41,7 +41,6 @@ func init() { "toYaml": toYaml, "mustToYaml": mustToYaml, "uuid": uuid.New, - "randInt": rand.Int, "randIntN": rand.IntN, } diff --git a/website/docs/reference/templating.mdx b/website/docs/reference/templating.mdx index 0cb714a7e8..5cd75c4f07 100644 --- a/website/docs/reference/templating.mdx +++ b/website/docs/reference/templating.mdx @@ -400,7 +400,6 @@ Lastly, Task itself provides a few functions: | `fromYaml`\* | Decodes a YAML string into an object. | | `toYaml`\* | Encodes an object as a YAML string. | | `uuid` | Generates a new pseudo-random UUIDv4 string. | -| `randInt` | Generates a new pseudo-random, non-negative, 32bit integer. Generated numbers are not suitable for security-sensitive work. | | `randIntN` | Generates a new pseudo-random, non-negative, 32bit integer in the half-open interval `[0,n)`. Generated numbers are not suitable for security-sensitive work. | {/* prettier-ignore-start */}