mattbaker/git-vanity-sha

Explain Delta Generator

Closed this issue · 2 comments

Hi! Would you mind explaining how the delta generation works? The bitshifts are a bit confusing.

s7726 commented

It's Ruby, they aren't bit shifts
https://stackoverflow.com/a/6852104/1006048

The Enumerator generates alternating positive and negative integers up to the number of seconds that elapses in 10 days ( 0,0,1,-1,2,-2,3,-3...). << is an alias for yield.