Skip to content

Use portable hash for identity override virtual segment keys #197

@emyller

Description

@emyller

Identity override virtual segment keys use Java's hashCode() method, producing non-portable values across SDK implementations.

Acceptance criteria

Technical context

Current implementation uses non-portable hash:

return String.valueOf(keyBuilder.toString().hashCode());

Portable standard (JSON + SHA256):

Test data: Flagsmith/engine-test-data#46

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions