Skip to content

Commit

Permalink
small change to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
BazookaMusic committed Apr 10, 2019
1 parent 419d168 commit 6730679
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions skiplist.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,11 @@ func (list *Skiplist) setFastRandom(isSet bool) {
}

/*New : Create new skiplist
prob : Probability of bernoulli trials to find level of insertion.
maxLevels: max level of insertion
fastRandom: true -> use optimised random level generation with set probability 0.5 (fast),
false -> use bernoulli trials with consecutive calls to random (slower but variable probability) */
func New(prob float64, maxLevels int, fastRandom bool) *Skiplist {
Expand Down

0 comments on commit 6730679

Please sign in to comment.