mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
replace String.random with randomstring
This commit is contained in:
22 files changed
+64
-48
No files matched your search
@@ -2,7 +2,7 @@ import os from 'os';
|
||||
import path from 'path';
|
||||
import cac from 'cac';
|
||||
import Schema from 'schemastery';
|
||||
import { fs, yaml } from '@hydrooj/utils';
|
||||
import { fs, randomstring, yaml } from '@hydrooj/utils';
|
||||
|
||||
const argv = cac().parse();
|
||||
|
||||
@@ -30,7 +30,7 @@ export const JudgeSettings = Schema.object({
|
||||
rate: Schema.number().default(1),
|
||||
env: Schema.string().default(defaultEnv),
|
||||
host: Schema.any(),
|
||||
secret: Schema.string().description('Judge Token Secret').default(String.random(32)),
|
||||
secret: Schema.string().description('Judge Token Secret').default(randomstring(32)),
|
||||
disable: Schema.boolean().description('Disable builtin judge').default(false),
|
||||
detail: Schema.union([
|
||||
Schema.const('full'),
|
||||
|
||||
Reference in new issue
Block a user