Skip to content

Commit

Permalink
Set null as default seed value
Browse files Browse the repository at this point in the history
  • Loading branch information
RYangazov committed Nov 6, 2023
1 parent fa1cf4e commit 7ef7625
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion future_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
### Changed

### Fixed

- Jitter reproducibility in geom_jitter [[#911](https://github.com/JetBrains/lets-plot/issues/911)].
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class JitterDodgePos(aesthetics: Aesthetics, groupCount: Int, width: Double?, ji
private val myDodgePosHelper: PositionAdjustment

init {
myJitterPosHelper = JitterPos(jitterWidth, jitterHeight, seed = null)
myJitterPosHelper = JitterPos(jitterWidth, jitterHeight)
myDodgePosHelper = DodgePos(aesthetics, groupCount, width)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import org.jetbrains.letsPlot.core.plot.base.GeomContext
import org.jetbrains.letsPlot.core.plot.base.PositionAdjustment
import kotlin.random.Random

internal class JitterPos(width: Double?, height: Double?, seed: Long?) : PositionAdjustment {
internal class JitterPos(width: Double?, height: Double?, seed: Long? = null) : PositionAdjustment {

//uniform distribution
private val myWidth: Double
Expand Down

0 comments on commit 7ef7625

Please sign in to comment.