manifold/functions/src
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
..
email-templates Typo fix; fixes #216 (#218) 2022-05-13 18:22:10 -04:00
scripts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
add-liquidity.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
backup-db.ts Send M$ to Charity & txns (#81) 2022-04-29 19:35:56 -04:00
call-cloud-function.ts keep awake cloud functions 2021-12-17 20:13:20 -06:00
change-user-info.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
create-answer.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
create-contract.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
create-fold.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
create-user.ts Better random (#213) 2022-05-15 13:13:07 -07:00
emails.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
fetch.ts keep awake cloud functions 2021-12-17 20:13:20 -06:00
get-feed-data.ts Categories (#132) 2022-05-12 10:07:10 -05:00
index.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
keep-awake.ts turn keep awake on 2021-12-24 16:14:02 -05:00
market-close-emails.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
on-create-bet.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
on-create-comment.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
on-fold-delete.ts Fold delete 2022-01-26 14:56:15 -06:00
on-fold-follow.ts Compute fold follower count from cloud function. 2022-01-26 14:27:16 -06:00
on-view.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
place-bet.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
redeem-shares.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
resolve-market.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
sell-bet.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
sell-shares.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
send-email.ts Send emails for new comments on markets you commented on or created. 2022-02-22 20:35:07 -06:00
stripe.ts Update mantic.markets -> manifold.markets (#212) 2022-05-13 07:07:51 -04:00
transact.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
unsubscribe.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
update-contract-metrics.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
update-feed.ts Change feed update strategy to update a fixed subset of users every 5 minutes 2022-05-15 15:47:29 -04:00
update-recommendations.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
update-user-metrics.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
utils.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00