feat: RNG 테스트 파일 추가 및 기존 테스트 파일 삭제
This commit is contained in:
@@ -1,11 +1,12 @@
|
|||||||
import { describe, expect, it } from 'vitest';
|
import { describe, expect, it } from 'vitest';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
bufferByteSize,
|
bufferByteSize,
|
||||||
convertBytesLikeToArrayBuffer,
|
convertBytesLikeToArrayBuffer,
|
||||||
convertBytesLikeToUint8Array as toBytes,
|
convertBytesLikeToUint8Array as toBytes,
|
||||||
LiteHashDRBG,
|
LiteHashDRBG,
|
||||||
RandUtil,
|
RandUtil,
|
||||||
} from '@sammo-ts/common';
|
} from '../src/index.js';
|
||||||
|
|
||||||
type Bytes = ArrayBuffer | DataView<ArrayBuffer> | Uint8Array<ArrayBuffer>;
|
type Bytes = ArrayBuffer | DataView<ArrayBuffer> | Uint8Array<ArrayBuffer>;
|
||||||
type MaybeBytes = Bytes | string;
|
type MaybeBytes = Bytes | string;
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
import { describe, expect, it } from 'vitest';
|
import { describe, expect, it } from 'vitest';
|
||||||
import { ConstantRNG, MidpointRNG, SequenceRNG, SineRNG } from '@sammo-ts/common';
|
|
||||||
|
import { ConstantRNG, MidpointRNG, SequenceRNG, SineRNG } from '../src/index.js';
|
||||||
|
|
||||||
const toArray = (bytes: Uint8Array): number[] => Array.from(bytes);
|
const toArray = (bytes: Uint8Array): number[] => Array.from(bytes);
|
||||||
|
|
||||||
Reference in New Issue
Block a user