LEAKED: Source Code for #HowOldRobot

Due to a server misconfiguration, I was able to retrieve the source code for Microsoft’s #HowOldRobot. The algorithm for age detection is especially interesting!

~/HowOld/Common/Age.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
// (c) 2015 Microsoft Inc.
// All rights reserved

namespace HowOld.Common
{
    public static class Age
    {
        public static int Calculate(byte[] imageData)
        {
            return new Random().Next(2, 65);
        }
    }
}

Comments