projects
/
fiveam.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e358582
)
FIX: gentree typo/unsaved file
author
Attila Lendvai
<attila.lendvai@gmail.com>
Thu, 9 Nov 2006 11:10:33 +0000
(12:10 +0100)
committer
attila.lendvai
<attila.lendvai@gmail.com>
Thu, 9 Nov 2006 11:10:33 +0000
(12:10 +0100)
src/random.lisp
patch
|
blob
|
history
diff --git
a/src/random.lisp
b/src/random.lisp
index
1052f35
..
53f423b
100644
(file)
--- a/
src/random.lisp
+++ b/
src/random.lisp
@@
-242,7
+242,7
@@
the approximate size of the tree, but don't try anything above
30, you have been warned. ELEMENTS must be a generator which
will produce the elements."
(labels ((rec (&optional (current-depth 0))
- (let ((key (random (+ 3 (- depth current-depth)))))
+ (let ((key (random (+ 3 (- size current-depth)))))
(cond ((> key 2)
(list (rec (+ current-depth 1))
(rec (+ current-depth 1))))