To fix bug when compiling xcodegen on linux distros using swift 5.10.1
Solution 📦
I got rid of the arc4random_uniform method and used the TYPE.random method (Int.random(in: 0..<base.count)
I also got rid of the overwrite on arc4random_uniform that would happen when linux distros were being used as the TYPE.random method works with linux distros
Implementation 👩💻👨💻
[ ] Made Changes
[ ] Pulled Changes into XcodeGen branch
[ ] Tested Changes in XcodeGen branch on linux distro and confirmed it could now compile and work correctly
Resolves https://github.com/tuist/XcodeProj/issues/845
Short description 📝
To fix bug when compiling xcodegen on linux distros using swift 5.10.1
Solution 📦
I got rid of the arc4random_uniform method and used the TYPE.random method (
Int.random(in: 0..<base.count
)I also got rid of the overwrite on arc4random_uniform that would happen when linux distros were being used as the TYPE.random method works with linux distros
Implementation 👩💻👨💻