Re:Show HN: Twosome - app created originally for my girlfriend
by ecoffey on Thursday February 14, 2013 @03:50PM
(#5222158)
I'm guessing it's syncing a seed to srand(), so neither of you control when the messages pop up
Re:Show HN: Twosome - app created originally for my girlfriend
by scrumper on Thursday February 14, 2013 @04:36PM
(#5222528)
That's elegant.
So, OP, I have to know: did you come up with the synced seed first and then try to build an idea around it, or did the idea of simultaneous, server-less, auto-generated endearments drive you to this solution?
Re:Show HN: Twosome - app created originally for my girlfriend
by twanschik on Thursday February 14, 2013 @04:44PM
(#5222586)
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)
Re:Show HN: Twosome - app created originally for my girlfriend
by scrumper on Thursday February 14, 2013 @05:02PM
(#5222715)
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?
Re:Show HN: Twosome - app created originally for my girlfriend
by twanschik on Thursday February 14, 2013 @05:25PM
(#5222888)
Something similar: both phones exchange a random seed and compute the arithmetic mean in order to get a common seed :)
Re:Show HN: Twosome - app created originally for my girlfriend
by philsnow on Friday February 15, 2013 @10:47AM
(#5226696)
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.
Re:Show HN: Twosome - app created originally for my girlfriend
by twanschik on Thursday February 14, 2013 @03:51PM
(#5222173)
That's correct. So once connected you will always get random notifications at the same time, even with NO network :)
Re:Show HN: Twosome - app created originally for my girlfriend
by ben1040 on Thursday February 14, 2013 @08:01PM
(#5223795)
Aha, that's what I was missing. I didn't realize from the app description that it was a randomized message, and I thought it was one device's user sending a message to the other.
I must be missing something, if "no further connection to the internet is required." How does it send messages between two devices without an internet connection? Presumably if it's on iOS it's not using SMS...