Explorar o código

Add warning to randomString helper function

Danilo Bargen %!s(int64=6) %!d(string=hai) anos
pai
achega
4b1d124113
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/helpers.ts

+ 1 - 1
src/helpers.ts

@@ -61,7 +61,7 @@ export function hexToU8a(hexstring: string): Uint8Array {
 }
 
 /**
- * Generate a random string.
+ * Generate a (non-cryptographically-secure!) random string.
  *
  * Based on http://stackoverflow.com/a/1349426/284318.
  */