Converts tests to TypeScript (#300)
This commit is contained in:
@@ -8,7 +8,6 @@ import randomAsU8a from './asU8a';
|
||||
|
||||
/**
|
||||
* @name randomAsHex
|
||||
* @signature randomAsHex (length?: number = 32): string
|
||||
* @summary Creates a hex string filled with random bytes.
|
||||
* @description
|
||||
* Returns a hex string with the specified (optional) length filled with random bytes.
|
||||
|
||||
@@ -11,7 +11,6 @@ const BN_53 = new BN(0b11111111111111111111111111111111111111111111111111111);
|
||||
|
||||
/**
|
||||
* @name randomAsNumber
|
||||
* @signature randomAsNumber (): number
|
||||
* @summary Creates a random number from random bytes.
|
||||
* @description
|
||||
* Returns a random number generated from the secure bytes.
|
||||
|
||||
@@ -6,7 +6,6 @@ import nacl from 'tweetnacl';
|
||||
|
||||
/**
|
||||
* @name randomAsU8a
|
||||
* @signature randomAsU8a (length?: number = 32): Uint8Array
|
||||
* @summary Creates a Uint8Array filled with random bytes.
|
||||
* @description
|
||||
* Returns a `Uint8Array` with the specified (optional) length filled with random bytes.
|
||||
|
||||
Reference in New Issue
Block a user