The existing APIs simply pass the implicit global state to the _r variants.
No functional change.
Differential D23289
random(3): Abstract routines into _r versions on explicit state cem on Jan 21 2020, 2:07 AM. Authored by Tags None Referenced Files
Subscribers
Details
Diff Detail
Event TimelineComment Actions I had some concerns about providing *_r variants of these that match names from glibc but aren't compatible, but I see the ultimate plan is that these aren't intended to be exported from libc at all- this seems OK. Comment Actions Hm, I didn't realize glibc had these routines. They picked different argument orderings and state struct name (and field names), but otherwise look pretty similar. Yeah, I didn't intend to export these routines from libc and don't see a great reason to. |