The code is open source, and there probably several different implementations.