SkillAgentSearch skills...

SnowFlake

A CPP implement of Twitter SnowFlake Algorithm.

Install / Use

/learn @Shenggan/SnowFlake
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

SnowFlake: A Fast GUID Algorithm

Snowflake is a network service for generating unique ID numbers at high scale with some simple guarantees. The Algorithm is developed by Twitter. The original repo is on https://github.com/twitter/snowflake.

You can see some details of SnowFlake in this Blog.

Get Started

This is a head-only impelement of the SnowFlake Algorithm. The algorithm code is in SnowFlake.h and the test code is in test/test_SnowFlake.cc. You can see the usage in the test code too.

make                # complie the test
make test    # run the test
View on GitHub
GitHub Stars20
CategoryData
Updated7mo ago
Forks3

Languages

C++

Security Score

87/100

Audited on Aug 21, 2025

No findings