提交 df2ad917 编写于 作者: A Alex Duan

test: change autogen.py random to fixed

上级 db1cb4a8
...@@ -51,10 +51,7 @@ class AutoGen: ...@@ -51,10 +51,7 @@ class AutoGen:
metas = [] metas = []
for i in range(cnt): for i in range(cnt):
colname = f"{pre}{i}" colname = f"{pre}{i}"
if i < len(types): sel = i % len(types)
sel = i
else:
sel = random.randint(0, len(types)-1)
coltype = types[sel] coltype = types[sel]
sql = f"{colname} {coltype}" sql = f"{colname} {coltype}"
if sqls != "": if sqls != "":
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册