From 673067995094e2ec9f739041067c6d932ec9f7f3 Mon Sep 17 00:00:00 2001 From: gerrish Date: Wed, 10 Apr 2019 16:10:00 +0300 Subject: [PATCH] small change to docs --- skiplist.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/skiplist.go b/skiplist.go index 951601c..9b36c9d 100644 --- a/skiplist.go +++ b/skiplist.go @@ -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 {