yeneek
Joined 6 years ago
Joined 6 years ago
> "I can try to be lucky and find your number by hashing random ones," If we were using sha-256, then you would be very impossibly lucky. There are 2^256 possible hash values for sha-256. It's extremely unlikely, that you would find a collision in the lifetime of the universe.
I have an algorithm for that. To roll a dice: 1. both players create a random x bytes long number.
2. both players make a hash from their number and then send it to the other one.
3. players exchange their random numbers and check if hashes are correct
4. concat both players random numbers and hash it to get the final random number
By exchanging hashes, both players can be sure that other player didn't tamper with their random number after getting yours.
(edited formatting)
Here are some things I do to be reliably productive. To be clear, I don't do everything written below everyday (except limiting phonetime). They are tools to stop the downward spiral. Pick what works for you.
- Get StayFree app to limit your fun unproductive screentime. Getting bored is good for you. - Generally limit things that gives you easy dopamine. It messes with your reward system. - Clean up your home. - Get a cheap A4 notebook. Write down stuff you need to do into bubbles all around the page to get them out of your head. Break down complex tasks into simple short defined actions. Connect the bubbles according to the order you want to complete them. Don't overcommit. It should be easy to follow. - Sport helps - Sleep and eat well - Monday is the day when I'm the most productive. It's crucial to get rested during the weekend. - Drink enough water - Frontend development is less stressful than backend - Try Headspace app
My medication: Elontril, Concerta
Don't give up, keep fighting
https://www.forbes.com/sites/paultassi/2021/02/03/ps5-is-bei...
edit: Just realized that it's more platform specific than site specific.