This commit is contained in:
2025-01-05 02:23:51 -07:00
parent 0dd2da70c8
commit 91cc775e76
2 changed files with 13 additions and 0 deletions

7
utils/flake.js Normal file
View File

@@ -0,0 +1,7 @@
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
const randomBool = (chance_of_failure = 0.25) => Math.random() < chance_of_failure;
module.exports = {
sleep, randomBool
};