Why did you change this function? I'm pretty sure that doing so breaks other code.

This also breaks the specification. The seed for the host ordering should be the entropy, not the block id.