projects
/
fiveam.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25b02b6
)
Support code limit for gen-character
author
Attila Lendvai
<attila.lendvai@gmail.com>
Thu, 31 Aug 2006 16:13:25 +0000
(18:13 +0200)
committer
attila.lendvai
<attila.lendvai@gmail.com>
Thu, 31 Aug 2006 16:13:25 +0000
(18:13 +0200)
src/random.lisp
patch
|
blob
|
history
diff --git
a/src/random.lisp
b/src/random.lisp
index
ba0abf8
..
f91ca46
100644
(file)
--- a/
src/random.lisp
+++ b/
src/random.lisp
@@
-191,7
+191,8
@@
BOUND)."
(- (random (min (- most-negative) bound)))))
type))))
-(defun gen-character (&key (code (gen-integer :min 0 :max (1- char-code-limit)))
+(defun gen-character (&key (code-limit char-code-limit)
+ (code (gen-integer :min 0 :max (1- code-limit)))
(alphanumericp nil))
"Returns a generator of characters.