[MinGW-Notify] [mingw] #39658: w32api 5.2.2 does not expose function rand_s?

Back to archive index
MinGW Notification List mingw****@lists*****
Sun Oct 6 21:50:31 JST 2019


#39658: w32api 5.2.2 does not expose function rand_s?

  Open Date: 2019-10-06 14:50
Last Update: 2019-10-06 14:50

URL for this Ticket:
    https://osdn.net//projects/mingw/ticket/39658
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=39658

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2019-10-06 14:50 Updated by: sping
 * New Ticket "w32api 5.2.2 does not expose function rand_s?" created



---------------------------------------------------------------------
Ticket Status:

      Reporter: sping
         Owner: (None)
          Type: Issues
        Status: Open
      Priority: 5 - Medium
     MileStone: (None)
     Component: WSL
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

Hi!

Windows introduced function `rand_s` some time and while I find mention of it
in MinGW's `msvcrt-xref.pdf` I cannot find a signature for it in w32api 5.2.2
headers. Are there plans to add a prototype to MinGW? We're about to define a
prototype in https://github.com/libexpat/libexpat/pull/356/files for MinGW in
Expat ourselves now but it seems like the real fix would be to have it in MinGW
for everyone — what do you think?

On a side note, msvcrt-xref.pdf says that rand_s is not contained in Windows XP
but contained in Windows Vista an after. The way I read the MS docs they imply
availability in Windows XP but it might be wishful thinking — if you know for
sure, I'd be interested in more details.

Thanks and best, Sebastian



-- 
Ticket information of MinGW - Minimalist GNU for Windows project
MinGW - Minimalist GNU for Windows Project is hosted on OSDN

Project URL: https://osdn.net/projects/mingw/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/mingw/ticket/39658
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=39658



More information about the MinGW-Notify mailing list
Back to archive index