Просмотр исходного кода

Add warning to randomString helper function

Danilo Bargen 6 лет назад
Родитель
Сommit
4b1d124113
1 измененных файлов с 1 добавлено и 1 удалено
  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.
  */