Restore computeEntryCookie() functionality

just made small changes myself as per Jason Parraga's instructions.
https://groups.google.com/a/openflowhub.org/d/msg/floodlight-dev/haBVUTtUFCI/i0KbENgefkcJ