How cookie value is generated for Consistent hash

Hello everyone,
I am currently using the cookie based Load balancing by configuring the cookie in destination rule for the sticky session.
I am not sure how the value is generated for the cookie. I have observed same cookie value being set for different clients (different source IPs). Is that expected behavior?
If yes, what are the factors considered for generating the cookie value?

Appreciate any inputs.
Thanks,
Anoop

Found some useful links
envoy/hash_policy.cc at main · envoyproxy/envoy (github.com)

envoy/router.h at main · envoyproxy/envoy (github.com)

    value = conn->connectionInfoProvider().remoteAddress()->asString() +
            conn->connectionInfoProvider().localAddress()->asString();

    const std::string cookie_value = Hex::uint64ToHex(HashUtil::xxHash64(value));