manifold/common
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
..
envs 🔍 Algolia search (#136) 2022-05-09 12:38:33 -05:00
util Better random (#213) 2022-05-15 13:13:07 -07:00
.gitignore Add package.json to common directory, and lodash dependency 2022-02-01 12:59:51 -06:00
add-liquidity.ts Separate out fees (#169) 2022-05-10 08:49:14 -05:00
answer.ts Revert "Represent DB avatar URLs as non-null (#128)" 2022-05-06 14:29:15 -04:00
antes.ts daily free markets' liquidity provided by @ManifoldMarkets 2022-04-29 15:58:01 -04:00
bet.ts Cfmm (#64) 2022-03-15 17:27:51 -05:00
calculate-cpmm.ts include fees in tooltip 2022-05-09 17:33:24 -04:00
calculate-dpm.ts Fix free response mkt payout to default to last probabilities if resolutions not specified 2022-03-18 14:59:06 -05:00
calculate-fixed-payouts.ts Cfmm (#64) 2022-03-15 17:27:51 -05:00
calculate.ts Free response markets with investment cap (#157) 2022-05-09 14:09:07 -06:00
categories.ts Condense category names to just the tag name 2022-05-12 11:18:44 -04:00
charity.ts Feature Nonlinear as a charity 2022-05-07 08:15:40 -04:00
comment.ts Single threaded comments (#175) 2022-05-11 15:11:46 -06:00
contract.ts Free response markets with investment cap (#157) 2022-05-09 14:09:07 -06:00
feed.ts Categories (#132) 2022-05-12 10:07:10 -05:00
fees.ts lower fees 2022-03-18 00:39:21 -05:00
fold.ts Match lowercase tags for folds 2022-02-01 12:29:14 -06:00
liquidity-provision.ts Cfmm (#64) 2022-03-15 17:27:51 -05:00
new-bet.ts Cfmm (#64) 2022-03-15 17:27:51 -05:00
new-contract.ts Free response markets initialize with 0 volume, instead of 100 2022-05-13 09:43:12 -04:00
package.json Yarn workspaces (#42) 2022-02-01 15:25:51 -06:00
payouts-dpm.ts Separate out fees (#159) 2022-05-09 16:04:40 -05:00
payouts-fixed.ts Separate out fees (#159) 2022-05-09 16:04:40 -05:00
payouts.ts Separate out fees (#159) 2022-05-09 16:04:40 -05:00
recommended-contracts.ts Fix word scores, broken by an extra long word 2022-05-10 10:28:07 -04:00
scoring.ts Separate out fees (#159) 2022-05-09 16:04:40 -05:00
sell-bet.ts Fix sell to pay back loans 2022-03-31 00:54:42 -05:00
tracking.ts Track latency of feed and portfolio page. 2022-04-21 01:00:08 -05:00
txn.ts Send M$ to Charity & txns (#81) 2022-04-29 19:35:56 -04:00
user.ts Categories (#132) 2022-05-12 10:07:10 -05:00
yarn.lock Add package.json to common directory, and lodash dependency 2022-02-01 12:59:51 -06:00