- Added BytesLike type for handling various byte representations. - Implemented LiteHashDRBG class for SHA-512 based deterministic random bit generator. - Created RNG interface defining methods for random number generation. - Developed RandUtil class providing utility functions for RNG operations. - Added conversion functions for BytesLike to ArrayBuffer and Uint8Array. - Implemented comprehensive tests for RNG functionality and expected behaviors. - Configured Vitest for testing environment setup.
10 lines
190 B
TypeScript
10 lines
190 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
environment: 'node',
|
|
globals: true,
|
|
include: ['test/**/*.test.ts']
|
|
}
|
|
});
|