Hacker News new | ask | show | jobs
by twanschik 4867 days ago
I had the gift idea for my girlfriend a few years ago. How to implement it came next (even so the tricky part was how to sync the seed)
1 comments

Interesting. I really do like it. It's naff but in the best possible way. (I'm working on something related for my wife at the moment but it's even cheesier than Twosome - not sharing it here :])

Do you do some sort of seed exchange/negotiation? Something like swap current system times, and use the higher as the seed?

Something similar: both phones exchange a random seed and compute the arithmetic mean in order to get a common seed :)
This biases the chosen seeds towards the middle.. You could do something like add them both together modulo the size of whatever the random seed is on the platform, that should be unbiased.