← Quiz: Unique ID Generator: all 15 questions
Quiz: Unique ID Generator · Question 9 of 15
Why choose a custom epoch close to your launch date instead of 1970?
Why choose a custom epoch close to your launch date instead of 1970?
- A.1970 is not allowed in Python
- B.The 41-bit timestamp lasts about 69.7 years from the epoch, so an old epoch wastes most of that range
- C.It makes IDs random
- D.It doubles the number of machines
Answer & explanation
Correct answer: The 41-bit timestamp lasts about 69.7 years from the epoch, so an old epoch wastes most of that range
Starting from 1970 would leave only a few years before the timestamp overflows.
Can you get the rest right without peeking?
Take the timed Quiz: Unique ID Generator quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →