Skip to content

Commit d9933c7

Browse files
committed
add missing public annotations to RandomXorshift
1 parent 965fc23 commit d9933c7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sources/noise/compounds.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ struct FBM<Source>:Noise where Source:Noise
107107
return Σ
108108
}
109109
}
110-
111110
extension FBM where Source:TilingNoise
112111
{
113112
public

sources/noise/hash.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,13 @@ struct RandomXorshift
127127
return UInt32.max
128128
}
129129

130+
public
130131
init(seed:Int)
131132
{
132133
self.state128 = (1, 0, UInt32(truncatingIfNeeded: seed >> UInt32.bitWidth), UInt32(truncatingIfNeeded: seed))
133134
}
134135

135-
mutating
136+
public mutating
136137
func generate() -> UInt32
137138
{
138139
var t:UInt32 = self.state128.3
@@ -147,7 +148,7 @@ struct RandomXorshift
147148
return t
148149
}
149150

150-
mutating
151+
public mutating
151152
func generate(less_than maximum:UInt32) -> UInt32
152153
{
153154
let upper_bound:UInt32 = self.max - self.max % maximum

0 commit comments

Comments
 (0)