Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ComputerGuru
· 8y ago · 0 comments
The last time I checked, only for POC. In my uuid library [0], macOS is basically the only one I can’t create a per-thread rng and instead have to spin up a new one each time.
0:
https://github.com/neosmart/uuidxx
Comments
[–]
cozzyd
8y ago
It's frustrating, because TLS works fine on vanilla clang or newish gcc on Mac OS x.
[–]
wahern
8y ago
FWIW, macOS has arc4random(3) and arc4random_buf(3).
[–]
ComputerGuru
OP
8y ago
Thank you. It was supposed to be a platform-agnostic uuid library embracing the benefits of C++11 and beyond. But that was a pipe dream :)