Beta 7 with some repo names changed.
This commit is contained in:
1 parent
0f7b40cca7
commit
963c19493a
3408 files changed
+462217
-15516
No files matched your search
+24
@@ -0,0 +1,24 @@
|
||||
// () ~> HexString
|
||||
const hexString = () => {
|
||||
let str = "";
|
||||
while (Math.random() < 0.95)
|
||||
str = str + ("00" + (Math.random() * 256 | 0).toString(16)).slice(-2);
|
||||
return "0x" + str;
|
||||
}
|
||||
|
||||
// () ~> DataTree
|
||||
const dataTree = () => {
|
||||
let list = [];
|
||||
while (Math.random() < 0.8) {
|
||||
if (Math.random() < 0.8)
|
||||
list.push(hexString());
|
||||
else
|
||||
list.push(dataTree());
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
hexString,
|
||||
dataTree
|
||||
}
|
||||
Reference in new issue
Block a user