Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 999281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:19:37+00:00 2026-05-16T07:19:37+00:00

in c#, at least, generating a new guid is a one line one call

  • 0

in c#, at least, generating a new guid is a one line one call process.

A guid is easy to use and format, and it “guarantees” uniqueness.

However, is it irresponsible to just go off and generate new guids for every little thing. Could we be significantly increasing the chances of a “ta tan tan” guid collision?!

thoughts…?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T07:19:37+00:00Added an answer on May 16, 2026 at 7:19 am

    GUID’s are 128 bit values. You could generate a million a second until the sun burned out and not encounter a collision. Specifically, the birthday paradox applied to a 128 bit value means even with 10e19 values, you still only have a 50% chance of a collision.

    More specifically, 10e38 or ’38 digits’ as you say only seems like a measly number because of the way its expressed. Try writing it out on a piece of paper as a 1 with 38 zeros after it. Even then you probably can’t picture anything like what it represents. To do that its easier to break it down somehow. The best way to do that is to illustrate some comparative values.

    There are 10e7.5 seconds in a year.

    There are 10e9.8 people on earth.

    There are 10e10.1 years in the current age of the universe.

    So even if every person currently on earth generated a million GUIDs every second since the beginning of time you would still only have used up less than 1/10,000th of the domain.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The last line in the following line keeps on generating the warning C4552: '<='
I have seen at least one site in the past that had analytics on
Is there a simple way of generating a new Route-URL without all this faff.
We were just assigned a new project in my data structures class -- Generating
i have one count down timer using http://keith-wood.name/countdown.html var austDay = new Date(); austDay
I have found few interesting things (for me at least) while generating random integers
Least Recently Used (LRU) Cache is to discard the least recently used items first
At least two brilliant programmers, Linus Torvalds and Guido von Rossum, disparage the practice
At least on my local instance, when I create tables, they are all prefixed
...at least to me. This code used to work fine. I'm pretty sure nothing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.