Files
pezkuwi-common/packages/x-randomvalues/src/fallback.spec.ts
T
pezkuwichain a5542fdd87 Rebrand: polkadot → pezkuwi internal references fixed
- Fixed internal @polkadot references to @pezkuwi
- Updated hw-ledger and hw-ledger-transports packages
- Updated keyring and networks packages
- Version 14.0.7
2026-01-07 02:34:39 +03:00

23 lines
638 B
TypeScript

// Copyright 2017-2025 @pezkuwi/x-randomvalues authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
import { insecureRandomValues } from './fallback.js';
describe('fallback (insecure)', (): void => {
it('subsequent results does not match', (): void => {
expect(
insecureRandomValues(new Uint8Array(32)).toString()
).not.toEqual(
insecureRandomValues(new Uint8Array(32)).toString()
);
});
it('generates with the supplied length', (): void => {
expect(
insecureRandomValues(new Uint8Array(128))
).toHaveLength(128);
});
});