Skip to content

Commit 47dc87a

Browse files
authored
fix: remove extra breaking randInt function (#2316)
1 parent 3b0a746 commit 47dc87a

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

internal/templater/funcs.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ func init() {
4141
"toYaml": toYaml,
4242
"mustToYaml": mustToYaml,
4343
"uuid": uuid.New,
44-
"randInt": rand.Int,
4544
"randIntN": rand.IntN,
4645
}
4746

website/docs/reference/templating.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,6 @@ Lastly, Task itself provides a few functions:
400400
| `fromYaml`\* | Decodes a YAML string into an object. |
401401
| `toYaml`\* | Encodes an object as a YAML string. |
402402
| `uuid` | Generates a new pseudo-random UUIDv4 string. |
403-
| `randInt` | Generates a new pseudo-random, non-negative, 32bit integer. Generated numbers are not suitable for security-sensitive work. |
404403
| `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. |
405404

406405
{/* prettier-ignore-start */}

0 commit comments

Comments
 (0)