On 14 September 2017 at 03:32, James E. King, III via Boost < boost@lists.boost.org> wrote:
RtlGenRandom is no supported on non-desktop UWP ...
This page https://docs.microsoft.com/en-us/windows/uwp/get-started/whats-a-uwp states that: "UWP apps use the Windows Runtime, a native API built into the operating system." ... and ... Some options for writing apps in UWP include: ... C++ backend ... So it should be possible to write: extern "C" int rand_s ( unsigned int* ); which tells the compiler not to worry about the existence of this function, "we'll give it to you at link-time". This works (and only works AFAIK), because it's a "C" function, a function without C++ name mangling. degski -- "*Ihre sogenannte Religion wirkt bloß wie ein Opiat reizend, betäubend, Schmerzen aus Schwäche stillend.*" - Novalis 1798