How to Generate Bulk UUIDs for Database Seeding
By OmniToolbox Team •
Universally Unique Identifiers (UUIDs) are 128-bit numbers used to identify information in computer systems. Version 4 UUIDs are generated using random numbers and are practically guaranteed to be unique.
Why Do You Need Bulk UUIDs?
When developing a new feature, you often need to seed your database with dummy data. Manually generating UUIDs for foreign keys or primary keys one by one is tedious.
Generating UUIDs Securely
It’s important that UUIDs are generated using a cryptographically secure pseudo-random number generator (CSPRNG), not just Math.random(). Modern browsers provide crypto.getRandomValues() for this exact purpose.
Instead of writing a quick Node.js script every time you need test data, you can use our Bulk UUID Generator to instantly generate up to 1,000 secure v4 UUIDs offline.