"Google also copied the nine-line rangeCheck function in its implementing code"
Comparison between the two, discussed back in 2012:
https://news.ycombinator.com/item?id=3940683