The Swift Package Index logo.Swift Package Index

Build Information

Successful build of SwiftRandom, reference master (dc56ac), with Swift 6.3 for macOS (SPM) on 14 Apr 2026 04:45:03 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/iamjono/SwiftRandom.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/iamjono/SwiftRandom
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at dc56acb adding swift 4 SPM convention
Cloned https://github.com/iamjono/SwiftRandom.git
Revision (git rev-parse @):
dc56acbbe52138b38473c79f31d06417f420ad11
SUCCESS checkout https://github.com/iamjono/SwiftRandom.git at master
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "traits": [
    "default"
  ],
  "dependencies": [
    {
      "identity": "swiftrandom",
      "name": "SwiftRandom",
      "url": "https://github.com/iamjono/SwiftRandom.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftRandom",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/iamjono/SwiftRandom.git
[1/499] Fetching swiftrandom
Fetched https://github.com/iamjono/SwiftRandom.git from cache (0.76s)
Creating working copy for https://github.com/iamjono/SwiftRandom.git
Working copy of https://github.com/iamjono/SwiftRandom.git resolved at master (dc56acb)
warning: '.resolve-product-dependencies': dependency 'swiftrandom' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/iamjono/SwiftRandom.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.txt
[3/6] Compiling SwiftRandom Randoms.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/Randoms.swift:18:5: warning: 'public' modifier is redundant for static method declared in a public extension
 16 | public extension Bool {
 17 |     /// SwiftRandom extension
 18 |     public static func random() -> Bool {
    |     `- warning: 'public' modifier is redundant for static method declared in a public extension
 19 |         return Int.random() % 2 == 0
 20 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/Randoms.swift:25:5: warning: 'public' modifier is redundant for static method declared in a public extension
 23 | public extension Int {
 24 |     /// SwiftRandom extension
 25 |     public static func random(range: Range<Int>) -> Int {
    |     `- warning: 'public' modifier is redundant for static method declared in a public extension
 26 |         return random(lower: range.lowerBound, range.upperBound)
 27 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/Randoms.swift:30:5: warning: 'public' modifier is redundant for static method declared in a public extension
 28 |
 29 |     /// SwiftRandom extension
 30 |     public static func random(lower: Int = 0, _ upper: Int = 100) -> Int {
    |     `- warning: 'public' modifier is redundant for static method declared in a public extension
 31 | 		let rand = URandom()
 32 | 		let val = abs(rand.int % Int(upper - lower + 1))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/Randoms.swift:39:5: warning: 'public' modifier is redundant for static method declared in a public extension
 37 | public extension Int32 {
 38 |     /// SwiftRandom extension
 39 |     public static func random(range: Range<Int>) -> Int32 {
    |     `- warning: 'public' modifier is redundant for static method declared in a public extension
 40 |         return random(lower: range.lowerBound, range.upperBound)
 41 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/Randoms.swift:46:5: warning: 'public' modifier is redundant for static method declared in a public extension
 44 |     ///
 45 |     /// - note: Using `Int` as parameter type as we usually just want to write `Int32.random(13, 37)` and not `Int32.random(Int32(13), Int32(37))`
 46 |     public static func random(lower: Int = 0, _ upper: Int = 100) -> Int32 {
    |     `- warning: 'public' modifier is redundant for static method declared in a public extension
 47 | 		let rand = URandom()
 48 | 		let val = abs(rand.int32 % Int32(upper - lower + 1))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/Randoms.swift:55:5: warning: 'public' modifier is redundant for static method declared in a public extension
 53 | public extension Double {
 54 |     /// SwiftRandom extension
 55 |     public static func random(lower: Double = 0, _ upper: Double = 100) -> Double {
    |     `- warning: 'public' modifier is redundant for static method declared in a public extension
 56 | 		let rand = URandom()
 57 |         return (Swift.abs(Double(rand.int32)) / 0xFFFFFFFF) * (upper - lower) + lower
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/Randoms.swift:63:5: warning: 'public' modifier is redundant for static method declared in a public extension
 61 | public extension Float {
 62 |     /// SwiftRandom extension
 63 |     public static func random(lower: Float = 0, _ upper: Float = 100) -> Float {
    |     `- warning: 'public' modifier is redundant for static method declared in a public extension
 64 | 		let rand = URandom()
 65 |         return (Swift.abs(Float(rand.int32)) / 0xFFFFFFFF) * (upper - lower) + lower
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/Randoms.swift:71:5: warning: 'public' modifier is redundant for static method declared in a public extension
 69 | public extension Date {
 70 |     /// SwiftRandom extension
 71 |     public static func randomWithinDaysBeforeToday(days: Int) -> Date {
    |     `- warning: 'public' modifier is redundant for static method declared in a public extension
 72 |         let today = Date()
 73 | 		let rand = URandom()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/Randoms.swift:102:5: warning: 'public' modifier is redundant for static method declared in a public extension
100 |
101 |     /// SwiftRandom extension
102 |     public static func random() -> Date {
    |     `- warning: 'public' modifier is redundant for static method declared in a public extension
103 | //        let randomTime = TimeInterval(arc4random_uniform(UInt32.max))
104 | 		let rand = URandom()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/Randoms.swift:114:5: warning: 'public' modifier is redundant for instance method declared in a public extension
112 | public extension Array {
113 |     /// SwiftRandom extension
114 |     public func randomItem() -> Element? {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
115 |         guard self.count > 0 else {
116 |             return nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/Randoms.swift:128:5: warning: 'public' modifier is redundant for instance method declared in a public extension
126 | public extension ArraySlice {
127 |     /// SwiftRandom extension
128 |     public func randomItem() -> Element? {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
129 |         guard self.count > 0 else {
130 |             return nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/Randoms.swift:140:5: warning: 'public' modifier is redundant for static method declared in a public extension
138 | public extension URL {
139 |     /// SwiftRandom extension
140 |     public static func random() -> URL {
    |     `- warning: 'public' modifier is redundant for static method declared in a public extension
141 |         let urlList = ["http://www.google.com", "http://leagueoflegends.com/", "https://github.com/", "http://stackoverflow.com/", "https://medium.com/", "http://9gag.com/", "http://imgur.com/", "https://www.youtube.com/"]
142 |         return URL(string: urlList.randomItem()!)!
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/Randoms.swift:65:48: warning: '4294967295' is not exactly representable as 'Float'; it becomes '4294967296'
 63 |     public static func random(lower: Float = 0, _ upper: Float = 100) -> Float {
 64 | 		let rand = URandom()
 65 |         return (Swift.abs(Float(rand.int32)) / 0xFFFFFFFF) * (upper - lower) + lower
    |                                                `- warning: '4294967295' is not exactly representable as 'Float'; it becomes '4294967296'
 66 |     }
 67 | }
[4/6] Compiling SwiftRandom URandom.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/URandom.swift:62:16: warning: initialization of 'UnsafeMutableRawPointer' results in a dangling pointer [#TemporaryPointers]
 60 |     public var int16: Int16 {
 61 |         let bytes = read(numBytes: 2)
 62 |         return UnsafeMutableRawPointer(mutating: bytes).assumingMemoryBound(to: Int16.self).pointee
    |                |                                 |- note: implicit argument conversion from '[Int8]' to 'UnsafeRawPointer' produces a pointer valid only for the duration of the call to 'init(mutating:)'
    |                |                                 `- note: use the 'withUnsafeBytes' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                `- warning: initialization of 'UnsafeMutableRawPointer' results in a dangling pointer [#TemporaryPointers]
 63 |     }
 64 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/URandom.swift:73:16: warning: initialization of 'UnsafeMutableRawPointer' results in a dangling pointer [#TemporaryPointers]
 71 |     public var int32: Int32 {
 72 |         let bytes = read(numBytes: 4)
 73 |         return UnsafeMutableRawPointer(mutating: bytes).assumingMemoryBound(to: Int32.self).pointee
    |                |                                 |- note: implicit argument conversion from '[Int8]' to 'UnsafeRawPointer' produces a pointer valid only for the duration of the call to 'init(mutating:)'
    |                |                                 `- note: use the 'withUnsafeBytes' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                `- warning: initialization of 'UnsafeMutableRawPointer' results in a dangling pointer [#TemporaryPointers]
 74 |     }
 75 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/URandom.swift:84:16: warning: initialization of 'UnsafeMutableRawPointer' results in a dangling pointer [#TemporaryPointers]
 82 |     public var int64: Int64 {
 83 |         let bytes = read(numBytes: 8)
 84 |         return UnsafeMutableRawPointer(mutating: bytes).assumingMemoryBound(to: Int64.self).pointee
    |                |                                 |- note: implicit argument conversion from '[Int8]' to 'UnsafeRawPointer' produces a pointer valid only for the duration of the call to 'init(mutating:)'
    |                |                                 `- note: use the 'withUnsafeBytes' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                `- warning: initialization of 'UnsafeMutableRawPointer' results in a dangling pointer [#TemporaryPointers]
 85 |     }
 86 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/URandom.swift:95:16: warning: initialization of 'UnsafeMutableRawPointer' results in a dangling pointer [#TemporaryPointers]
 93 |     public var int: Int {
 94 |         let bytes = read(numBytes: MemoryLayout<Int>.size)
 95 |         return UnsafeMutableRawPointer(mutating: bytes).assumingMemoryBound(to: Int.self).pointee
    |                |                                 |- note: implicit argument conversion from '[Int8]' to 'UnsafeRawPointer' produces a pointer valid only for the duration of the call to 'init(mutating:)'
    |                |                                 `- note: use the 'withUnsafeBytes' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
    |                `- warning: initialization of 'UnsafeMutableRawPointer' results in a dangling pointer [#TemporaryPointers]
 96 |     }
 97 |
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[5/6] Compiling SwiftRandom Random.swift
[6/6] Emitting module SwiftRandom
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/Randoms.swift:18:5: warning: 'public' modifier is redundant for static method declared in a public extension
 16 | public extension Bool {
 17 |     /// SwiftRandom extension
 18 |     public static func random() -> Bool {
    |     `- warning: 'public' modifier is redundant for static method declared in a public extension
 19 |         return Int.random() % 2 == 0
 20 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/Randoms.swift:25:5: warning: 'public' modifier is redundant for static method declared in a public extension
 23 | public extension Int {
 24 |     /// SwiftRandom extension
 25 |     public static func random(range: Range<Int>) -> Int {
    |     `- warning: 'public' modifier is redundant for static method declared in a public extension
 26 |         return random(lower: range.lowerBound, range.upperBound)
 27 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/Randoms.swift:30:5: warning: 'public' modifier is redundant for static method declared in a public extension
 28 |
 29 |     /// SwiftRandom extension
 30 |     public static func random(lower: Int = 0, _ upper: Int = 100) -> Int {
    |     `- warning: 'public' modifier is redundant for static method declared in a public extension
 31 | 		let rand = URandom()
 32 | 		let val = abs(rand.int % Int(upper - lower + 1))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/Randoms.swift:39:5: warning: 'public' modifier is redundant for static method declared in a public extension
 37 | public extension Int32 {
 38 |     /// SwiftRandom extension
 39 |     public static func random(range: Range<Int>) -> Int32 {
    |     `- warning: 'public' modifier is redundant for static method declared in a public extension
 40 |         return random(lower: range.lowerBound, range.upperBound)
 41 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/Randoms.swift:46:5: warning: 'public' modifier is redundant for static method declared in a public extension
 44 |     ///
 45 |     /// - note: Using `Int` as parameter type as we usually just want to write `Int32.random(13, 37)` and not `Int32.random(Int32(13), Int32(37))`
 46 |     public static func random(lower: Int = 0, _ upper: Int = 100) -> Int32 {
    |     `- warning: 'public' modifier is redundant for static method declared in a public extension
 47 | 		let rand = URandom()
 48 | 		let val = abs(rand.int32 % Int32(upper - lower + 1))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/Randoms.swift:55:5: warning: 'public' modifier is redundant for static method declared in a public extension
 53 | public extension Double {
 54 |     /// SwiftRandom extension
 55 |     public static func random(lower: Double = 0, _ upper: Double = 100) -> Double {
    |     `- warning: 'public' modifier is redundant for static method declared in a public extension
 56 | 		let rand = URandom()
 57 |         return (Swift.abs(Double(rand.int32)) / 0xFFFFFFFF) * (upper - lower) + lower
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/Randoms.swift:63:5: warning: 'public' modifier is redundant for static method declared in a public extension
 61 | public extension Float {
 62 |     /// SwiftRandom extension
 63 |     public static func random(lower: Float = 0, _ upper: Float = 100) -> Float {
    |     `- warning: 'public' modifier is redundant for static method declared in a public extension
 64 | 		let rand = URandom()
 65 |         return (Swift.abs(Float(rand.int32)) / 0xFFFFFFFF) * (upper - lower) + lower
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/Randoms.swift:71:5: warning: 'public' modifier is redundant for static method declared in a public extension
 69 | public extension Date {
 70 |     /// SwiftRandom extension
 71 |     public static func randomWithinDaysBeforeToday(days: Int) -> Date {
    |     `- warning: 'public' modifier is redundant for static method declared in a public extension
 72 |         let today = Date()
 73 | 		let rand = URandom()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/Randoms.swift:102:5: warning: 'public' modifier is redundant for static method declared in a public extension
100 |
101 |     /// SwiftRandom extension
102 |     public static func random() -> Date {
    |     `- warning: 'public' modifier is redundant for static method declared in a public extension
103 | //        let randomTime = TimeInterval(arc4random_uniform(UInt32.max))
104 | 		let rand = URandom()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/Randoms.swift:114:5: warning: 'public' modifier is redundant for instance method declared in a public extension
112 | public extension Array {
113 |     /// SwiftRandom extension
114 |     public func randomItem() -> Element? {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
115 |         guard self.count > 0 else {
116 |             return nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/Randoms.swift:128:5: warning: 'public' modifier is redundant for instance method declared in a public extension
126 | public extension ArraySlice {
127 |     /// SwiftRandom extension
128 |     public func randomItem() -> Element? {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
129 |         guard self.count > 0 else {
130 |             return nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRandom/Randoms.swift:140:5: warning: 'public' modifier is redundant for static method declared in a public extension
138 | public extension URL {
139 |     /// SwiftRandom extension
140 |     public static func random() -> URL {
    |     `- warning: 'public' modifier is redundant for static method declared in a public extension
141 |         let urlList = ["http://www.google.com", "http://leagueoflegends.com/", "https://github.com/", "http://stackoverflow.com/", "https://medium.com/", "http://9gag.com/", "http://imgur.com/", "https://www.youtube.com/"]
142 |         return URL(string: urlList.randomItem()!)!
Build complete! (3.72s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftRandom",
  "name" : "SwiftRandom",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftRandom",
      "targets" : [
        "SwiftRandom"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "4"
  ],
  "targets" : [
    {
      "c99name" : "SwiftRandomTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftRandomTests",
      "path" : "Tests/SwiftRandomTests",
      "sources" : [
        "SwiftRandomTests.swift"
      ],
      "target_dependencies" : [
        "SwiftRandom"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftRandom",
      "module_type" : "SwiftTarget",
      "name" : "SwiftRandom",
      "path" : "Sources/SwiftRandom",
      "product_memberships" : [
        "SwiftRandom"
      ],
      "sources" : [
        "Random.swift",
        "Randoms.swift",
        "URandom.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.