Skip to content

Cached cctype results in non-random data #24

@codingconcepts

Description

@codingconcepts

Issue: The first time faker.CCType() is called, the value is internally cached, meaning subsequent calls will always return the same data:

var cacheCreditCard string

Fix: Remove the caching to ensure subsequent calls are sufficiently random.

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