         // -Onone 0.46 seconds
         // -Os 0.060 seconds
         let dataCount = 50
-        let curves = generateRandomCurves(count: dataCount, selfIntersect: false, reseed: 1)
+        let curves = generateRandomCurves(count: dataCount, reseed: 2)
         self.measure {
             var count = 0
             for curve1 in curves {

        var curves: [CubicCurve] = []
        while curves.count < count {
            let curve = randomCurve()
            if curve.selfIntersects == selfIntersect {
                curves.append(curve)
            }
        }


private extension PerformanceTests {

    func generateRandomCurves(count: Int, selfIntersect: Bool? = nil, reseed: Int? = nil) -> [CubicCurve] {
        if let reseed = reseed {
            srand48(reseed) // seed with zero so that "random" values are actually the same across test runs
        }
