manifold/common/util
Jonas Wagner c9f3644988
Better random (#213)
* randomString: generate a securely random string.

Also, support lengths > 12 in case that's ever needed.

This is used in at least one case (creating device tokens for users)
where it seems important that the output is unpredictable.

* Try harder to create unique usernames.

The previous version added 16 bits of entropy to the username, which
isn't all that much. Due to the birthday paradox, it would be enough to
create ~256 users with the same prefix to get a collision.

Trying that would probably fail later on, and not create security
issues... but it just seems better to be on the safe side here.
2022-05-15 13:13:07 -07:00
..
array.ts Embed market: dynamically adjust graph height 2022-03-24 12:03:17 -05:00
clean-username.ts User profile (#44) 2022-02-03 21:04:56 -06:00
format.ts move manaToUSD to format.ts (#172) 2022-05-10 11:14:24 -07:00
math.ts Algo feed (#77) 2022-04-09 18:10:58 -05:00
object.ts Cfmm (#64) 2022-03-15 17:27:51 -05:00
parse.ts Enforce max question length, description length, and tag length. 2022-03-09 11:08:57 -06:00
promise.ts Fix leaderboard out of memory error with batchedWaitAll instead of Promise.all 2022-03-07 13:45:56 -08:00
random.ts Better random (#213) 2022-05-15 13:13:07 -07:00
slugify.ts formatting 2022-01-10 17:52:03 -06:00
time.ts Add weekly activiation rate 2022-04-19 01:47:58 -05:00
types.ts Add weekly active users chart. Put daily active first. 2022-03-21 17:42:12 -05:00