작업중
This commit is contained in:
+7
-16
@@ -1,6 +1,6 @@
|
||||
import 'dotenv/config';
|
||||
import 'reflect-metadata';
|
||||
import { BasicQueryDTO } from './api/index.js';
|
||||
import { BasicQueryDTO } from './api/serverImpl.js';
|
||||
import { validate } from 'class-validator';
|
||||
import express, { type Request, type Response } from "express"
|
||||
import { AppDataSource } from "./data_source.js"
|
||||
@@ -21,22 +21,13 @@ export async function test() {
|
||||
console.log(result);
|
||||
//must be integer가 나타나야함
|
||||
|
||||
const rawRng = new LiteHashDRBG(simpleSerialize(
|
||||
'haha',
|
||||
'hoho'
|
||||
));
|
||||
|
||||
const arr: Promise<Uint8Array>[] = [];
|
||||
let j = 0;
|
||||
for(let i = 0; i < 100; i += 1){
|
||||
arr.push(rawRng.nextBits(32).then((v) => {
|
||||
console.log(`${j}: ${i}`);
|
||||
j += 1;
|
||||
return v;
|
||||
}));
|
||||
const abc= {
|
||||
a: 1,
|
||||
b: 2,
|
||||
c: 3,
|
||||
}
|
||||
|
||||
await Promise.all(arr);
|
||||
const t2 = await validate(abc);
|
||||
console.log(t2);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user