MavEtJu / Geocube

Geocube is a fully featured open source Geocaching application for the iPhone. With support for multiple listing services, live import and logging and support for the import of GPX files, it is everything a hardcore geocacher needs.
http://geocube.mavetju.org/
3 stars 2 forks source link

Have the definition of SecRandomCopyBytes match! #12

Open NightFlyer opened 7 years ago

NightFlyer commented 7 years ago

I'm not sure what version of XCode you're using, but when I try to compile the current Master, the code won't compile because SecRandomCopyBytes has a mismatched definition.

In one place, SecRandomCopyBytes was defined to take a void , and in another place to take a uint8_t. The compiler was complaining and so this code wouldn’t compile.

I changed the definition to match the Apple definition (although now if the Apple version isn’t available, it will still call it’s own version which has uint8_t* as the expected argument type, but I don’t think that is ia problem).