8000 Cached cctype results in non-random data · Issue #24 · go-faker/faker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Cached cctype results in non-random data #24
Open
@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

    Issue actions

      0