Implement rand_r(), strnlen_s(), tempnam(), tmpnam()
Compare changes
Files
7+ 22
− 6
@@ -34,6 +34,10 @@ pub const MB_LEN_MAX: c_int = 4;
@@ -618,19 +622,31 @@ pub extern "C" fn qsort(
The RNG for rand_r()
is pretty weak, but if you're using rand_r()
you probably aren't looking for robust RNG anyway.
tempnam()
and tmpnam()
just use mktemp()
to generate file names.