Skip to content

fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.14.1#190

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/github.com-brianvoe-gofakeit-v7-7.x
Open

fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.14.1#190
renovate[bot] wants to merge 1 commit intomainfrom
renovate/github.com-brianvoe-gofakeit-v7-7.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jun 26, 2025

This PR contains the following updates:

Package Change Age Confidence
github.com/brianvoe/gofakeit/v7 v7.2.1v7.14.1 age confidence

Release Notes

brianvoe/gofakeit (github.com/brianvoe/gofakeit/v7)

v7.14.1

Compare Source

v7.14.0

Compare Source

v7.13.0

Compare Source

v7.12.1

Compare Source

v7.12.0

Compare Source

v7.11.0

Compare Source

v7.10.0

Compare Source

v7.9.0: ID Generator

Compare Source

New: ID() — Fast, Human-Readable Random Identifier

(GoFakeIt v7.9.0)

gofakeit.ID() is a new high-performance identifier generator designed for speed, readability, and practically zero collision probability.

Unlike UUID v4 or XID, this generator is intentionally random-first, not structure-based.
Perfect for mock APIs, test data, fixtures, seed data, and temporary identifiers.


Highlights

  • Human readable alphabet, no confusing characters
    23456789abcdefghjkmnpqrstuvwxyz (no 1, l, i or 0, o to alleviate confusion)
  • Fast
  • Memory Allocation
  • Generates from your rand source
  • Shorter than UUID, faster than XID, and requires no coordination

Example

id := gofakeit.ID()
fmt.Println(id)
// → "3t9qf4c92npxhw7bg6y0"

Performance Benchmarks

Measured on Go 1.25

Generator / Function Benchmark Name ops/sec ns/op B/op allocs/op
gofakeit.ID() BenchmarkID-10 31,383,146 37.8 ns 24 1
gofakeit.UUIDv4() BenchmarkUUIDv4-10 22,131,577 53.8 ns 48 1
github.com/rs/xid BenchmarkXID-10 16,190,817 74.2 ns 0 0
github.com/google/uuid (v4) BenchmarkGoogleUUIDv4-10 3,098,770 386.1 ns 64 2

Takeaway: gofakeit.ID() is ~2× faster than XID and ~10× faster than UUID v4, while being shorter and human-readable.


Collision Probability (Randomness Math)

  • ID length: 20 characters
  • Alphabet: 32 slots with one duplicated character (intentional) → avoids retries, maximizes speed
  • Effective entropy: ≈ 98.25 bits

Even under very large bursts, duplication is astronomically unlikely

Collision probability when generating n IDs within 1 second (birthday bound)
n (IDs in 1s) gofakeit.ID() collision probability
100,000 0.00000000000000000001326
1,000,000 0.000000000000000001326017
10,000,000 0.000000000000000132601736
100,000,000 0.000000000000013260173678
1,000,000,000 0.000000000001326017367838

For comparison (same n):

  • UUID v4 (122 bits): much lower probabilities (but significantly slower and longer)
  • XID: structural uniqueness (time + machine + pid + counter). Treat collisions as operationally zero when configured normally.

Need structural, sortable IDs? Use XID or Snowflake.
Want random, readable, fast? Use gofakeit.ID().


RNG Behavior

Mode Behavior
Default (gofakeit.ID()) PCG for speed, seeded via crypto/rand → fast + unpredictable
Full crypto (NewFaker(source.NewCrypto())) crypto/rand for every ID → maximum randomness (slower)
Deterministic (New(seed)) PCG with fixed seed → reproducible ID sequences (useful for tests/fixtures)

We seed PCG with a cryptographic seed when seed == 0. This prevents accidental identical streams across processes/containers.


Example Usage

package main

import (
	"fmt"

	"github.com/brianvoe/gofakeit/v7"
	"github.com/brianvoe/gofakeit/v7/source"
)

func main() {
	// Fast ID — PCG, automatically crypto-seeded
	fmt.Println("fast ID:", gofakeit.ID())

	// Cryptographically secure per-ID RNG
	crypto := source.NewCrypto()
	faker := gofakeit.NewFaker(crypto, true)
	fmt.Println("crypto ID:", faker.ID())
}

v7.8.2

Compare Source

v7.8.1

Compare Source

v7.8.0

Compare Source

v7.7.3

Compare Source

v7.7.2

Compare Source

v7.7.1

Compare Source

v7.7.0

Compare Source

v7.6.0

Compare Source

v7.5.1

Compare Source

v7.5.0

Compare Source

v7.4.0

Compare Source

v7.3.0: ISBN

Compare Source

📚 New Feature: ISBN Generation

This release adds support for generating valid ISBN identifiers, perfect for mock book data or publishing applications.

Generate a valid ISBN-10 or ISBN-13 string with customizable separator.

gofakeit.ISBN(ISBNOptions{Version: "13", Separator: "-"}) // "978-1-2345-6789-0"
🧰 Options
Field Description
Version "10" or "13" (default is "13")
Separator Custom string separator (e.g. "-", "")

Thanks to @​phoenisx , gofakeit is even more versatile for testing systems that work with books, publishing tools, or educational content.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from a team as a code owner June 26, 2025 16:40
@sonarqubecloud
Copy link

@renovate renovate bot changed the title fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.3.0 fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.4.0 Aug 19, 2025
@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v7-7.x branch from abf3871 to 56025f5 Compare August 19, 2025 22:33
@renovate renovate bot changed the title fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.4.0 fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.5.1 Aug 31, 2025
@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v7-7.x branch from 56025f5 to 6becb30 Compare August 31, 2025 09:38
@renovate renovate bot changed the title fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.5.1 fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.6.0 Sep 9, 2025
@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v7-7.x branch from 6becb30 to 8e06305 Compare September 9, 2025 04:47
@renovate renovate bot changed the title fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.6.0 fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.7.0 Sep 19, 2025
@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v7-7.x branch from 8e06305 to 5ff562f Compare September 19, 2025 02:26
@renovate renovate bot changed the title fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.7.0 fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.7.1 Sep 21, 2025
@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v7-7.x branch 2 times, most recently from 25dfc27 to f50e468 Compare September 23, 2025 02:25
@renovate renovate bot changed the title fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.7.1 fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.7.2 Sep 23, 2025
@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v7-7.x branch from f50e468 to a6e67f4 Compare September 24, 2025 18:07
@renovate renovate bot changed the title fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.7.2 fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.7.3 Sep 24, 2025
@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v7-7.x branch from a6e67f4 to 83d7c8c Compare October 12, 2025 16:59
@renovate renovate bot changed the title fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.7.3 fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.8.0 Oct 12, 2025
@renovate renovate bot changed the title fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.8.0 fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.8.1 Oct 24, 2025
@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v7-7.x branch from 83d7c8c to 1cb9fa7 Compare October 24, 2025 17:09
@renovate renovate bot changed the title fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.8.1 fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.8.2 Nov 1, 2025
@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v7-7.x branch 2 times, most recently from 33b3b59 to 243e86b Compare November 8, 2025 04:27
@renovate renovate bot changed the title fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.8.2 fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.9.0 Nov 8, 2025
@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v7-7.x branch from 243e86b to 2737e14 Compare November 22, 2025 22:12
@renovate renovate bot changed the title fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.9.0 fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.10.0 Nov 22, 2025
@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v7-7.x branch from 2737e14 to 1f6e59b Compare November 23, 2025 21:28
@renovate renovate bot changed the title fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.10.0 fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.11.0 Nov 23, 2025
@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v7-7.x branch from 1f6e59b to 77d580e Compare November 30, 2025 17:37
@renovate renovate bot changed the title fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.11.0 fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.12.0 Nov 30, 2025
@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v7-7.x branch from 77d580e to 8134fc3 Compare December 4, 2025 04:01
@renovate renovate bot changed the title fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.12.0 fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.12.1 Dec 4, 2025
@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v7-7.x branch from 8134fc3 to d99ff17 Compare December 15, 2025 14:41
@renovate renovate bot changed the title fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.12.1 fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.13.0 Dec 27, 2025
@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v7-7.x branch from d99ff17 to 64993b1 Compare December 27, 2025 16:44
@renovate renovate bot changed the title fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.13.0 fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.14.0 Dec 28, 2025
@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v7-7.x branch from 64993b1 to dbbd24d Compare December 28, 2025 04:59
@sonarqubecloud
Copy link

@renovate renovate bot force-pushed the renovate/github.com-brianvoe-gofakeit-v7-7.x branch from dbbd24d to 92606ad Compare March 3, 2026 17:36
@renovate renovate bot changed the title fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.14.0 fix(deps): update module github.com/brianvoe/gofakeit/v7 to v7.14.1 Mar 3, 2026
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 3, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants