First pass at birthday-based proof-of-work function.