mirror of
https://github.com/go-task/task.git
synced 2025-07-15 01:35:00 +02:00
fix: remove extra breaking randInt function (#2316)
This commit is contained in:
@ -41,7 +41,6 @@ func init() {
|
|||||||
"toYaml": toYaml,
|
"toYaml": toYaml,
|
||||||
"mustToYaml": mustToYaml,
|
"mustToYaml": mustToYaml,
|
||||||
"uuid": uuid.New,
|
"uuid": uuid.New,
|
||||||
"randInt": rand.Int,
|
|
||||||
"randIntN": rand.IntN,
|
"randIntN": rand.IntN,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -400,7 +400,6 @@ Lastly, Task itself provides a few functions:
|
|||||||
| `fromYaml`\* | Decodes a YAML string into an object. |
|
| `fromYaml`\* | Decodes a YAML string into an object. |
|
||||||
| `toYaml`\* | Encodes an object as a YAML string. |
|
| `toYaml`\* | Encodes an object as a YAML string. |
|
||||||
| `uuid` | Generates a new pseudo-random UUIDv4 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. |
|
| `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 */}
|
{/* prettier-ignore-start */}
|
||||||
|
Reference in New Issue
Block a user