浏览代码

Add warning to randomString helper function

Danilo Bargen 6 年之前
父节点
当前提交
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.
  */