3 ms·
Browsers recently implemented uuid natively, not sure if that’s a js spec change but do check :)
by hsbauauvhabzb 4y ago
Browsers recently implemented uuid natively, not sure if that’s a js spec change but do check :)
- Macha 4y agoDoesn't help in this case, since it's server side code.
- Aachen 4y agoHex/base64 encoding of some bytes from system random isn't sufficient, it needs to be UUID parseable format specifically? Aside from that, I guess your other dependencies have the same problem. It's not enough for one person to be mindful if they need something fully reasonable like a web server library which then depends on a million packages to build from source. Often-used dependencies could - work like a regular package system (e.g. Debian's) and distribute (reproducible) binaries unless explicitly asked to build from source, - only pull optional dependencies when they're used (a web server might depend on a logrotate dependency but maybe you don't use on-disk logs at all) - and/or be more selective in what they depend on. None of these are quick and easy to do without downsides