mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-03-01 18:00:42 +00:00
let restricted script engine use random
This commit is contained in:
parent
d91f0dcca8
commit
420e9e32a8
@ -5,6 +5,7 @@ import decimal
|
|||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
import random
|
||||||
import re
|
import re
|
||||||
import time
|
import time
|
||||||
import uuid
|
import uuid
|
||||||
@ -319,6 +320,7 @@ class CustomBpmnScriptEngine(PythonScriptEngine): # type: ignore
|
|||||||
"uuid": uuid,
|
"uuid": uuid,
|
||||||
"min": min,
|
"min": min,
|
||||||
"max": max,
|
"max": max,
|
||||||
|
"random": random,
|
||||||
**JinjaHelpers.get_helper_mapping(),
|
**JinjaHelpers.get_helper_mapping(),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user