Indeed,

But that function was just an example. I wanted to learn about how to use the 
stack to call C functions that will fill some memory area passed as a pointer.

Jean-Denis



> On 3 Oct 2016, at 09:46, Quinn The Eskimo! via swift-users 
> <swift-users@swift.org> wrote:
> 
> 
> On 3 Oct 2016, at 01:14, Mike Ferenduros via swift-users 
> <swift-users@swift.org> wrote:
> 
>> Personally I would be surprised if the malloc caused an actual measurable 
>> performance hit tbh.
> 
> Quite.  SecRandom generates cryptographically sound random numbers and thus 
> is not optimised for speed.
> 
> Share and Enjoy
> --
> Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
> Apple Developer Relations, Developer Technical Support, Core OS/Hardware
> 
> 
> _______________________________________________
> swift-users mailing list
> swift-users@swift.org
> https://lists.swift.org/mailman/listinfo/swift-users

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to