Skip to content

Issue : Inconsistent Hash Usage for User Identification #298

@PrinceSajjadHussain

Description

@PrinceSajjadHussain

In the server.py file, the signup and task routes generate user IDs using hash(hash_string). The hash function is not guaranteed to produce the same hash value across different Python processes or runs, and can even vary between minor versions. This means that a user might be assigned different IDs on subsequent visits, leading to inconsistent Statsig evaluations. Instead, consider using a more stable hashing algorithm, such as MD5 or SHA-256, for consistent user identification.

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