File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 115115 *
116116 * This is used internally by TinyBase for the synchronizer protocol and for
117117 * unique MergeableStore identifiers. But it is useful enough for it to be
118- * publicly exposes for purposes such as identifying shared collaboration rooms,
118+ * publicly exposed for purposes such as identifying shared collaboration rooms,
119119 * or creating other Ids that need to be unique.
120120 *
121121 * The string may contain numbers, lower or upper case letters, or the '-' or
122122 * '_' characters. This makes them URL-safe, and means they can be identified
123123 * with a regex like `/[-_0-9A-Za-z]+/`.
124124 *
125125 * This function prefers to use the `crypto` module to generate random numbers,
126- * but where that is not available (such as in React Native), a Math.random
127- * implementation is used. Whilst that my not be cryptographically sound, it
126+ * but where that is not available (such as in React Native), a ` Math.random`
127+ * implementation is used. Whilst that may not be cryptographically sound, it
128128 * should suffice for most TinyBase-related purposes.
129129 * @param length The desired length of the unique Id, defaulting to 16.
130130 * @returns A unique Id of the required length.
You can’t perform that action at this time.
0 commit comments