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.

Found some useful links
envoy/ at main · envoyproxy/envoy (

envoy/router.h at main · envoyproxy/envoy (

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

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