Skip to content
#

fake-data

Here are 160 public repositories matching this topic...

cestlacata
cestlacata commented May 19, 2021
  • Faker version: 8.1.2
  • OS: Windows 10

For locale fr_FR siren() and siret() methods generate incorrect values.
https://faker.readthedocs.io/en/master/locales/fr_FR.html#faker.providers.company.fr_FR.Provider.siren
https://faker.readthedocs.io/en/master/locales/fr_FR.html#faker.providers.company.fr_FR.Provider.siret

A valid SIREN has 9 digits = 8 digits + 1 Luhn Key
A valid SIRET has 14

kindaro
kindaro commented Mar 20, 2021

Currently, the value of the deterministic generator is nailed down in FakerSettings. It is used in the function [generateWithSettings].

I propose that this function checks if:

  • A certain environment variable is set.
  • It parses to a number.
  • The value of the generator in the given settings is default.
  • The mode of generation is deterministic.

— And if all are true, the value of th

简单易用的随机数据生成器。生成各种比较真实的假数据。一般用于开发和测试阶段的数据填充模拟。支持各类中国特色本地化的数据格式。An easy-to use random data generator. Generally used for data filling, simulation, demonstration and other scenarios in the development and test phase.

  • Updated Sep 5, 2021
  • Java

Improve this page

Add a description, image, and links to the fake-data topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the fake-data topic, visit your repo's landing page and select "manage topics."

Learn more