Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

arc4random_uniform not available in Xcode 7.0 beta (7a176x) on OSX 10.10.4

I'm trying to use arc4random_uniform in the Xcode build mentioned, but it seems to no longer be available:

arc4random_uniform no longer available

An alt-click on the available functions show that they're declared in stdlib.h, which has them listed as follows:

stdlib.h showing arc4random_uniform defined

It seems strange that its no longer available. This particular stdlib.h is within the iOS 9.0 simulator directory at usr/include/stdlib.h not sure if that helps or not.

I have the latest command line tools installed. Not sure what's going on. Any advice / help / fixes are much appreciated. Thanks in advance.

UPDATE

Seems to be an Xcode bug, references for which are:

  • 22275032
  • 22275176
like image 917
Kyle G Avatar asked Aug 13 '15 20:08

Kyle G


1 Answers

It seems to be still available (I have been using it in 7A176x, but on El Capitan), it is just not shown in the suggestions.

like image 157
MirekE Avatar answered Oct 13 '22 00:10

MirekE