projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21f418f
)
Temporary definition of random-bytevector for 9.2 hosts.
author
Matt Birkholz
<matt@birchwood-abbey.net>
Wed, 22 Feb 2017 22:56:22 +0000
(15:56 -0700)
committer
Matt Birkholz
<matt@birchwood-abbey.net>
Wed, 22 Feb 2017 22:56:22 +0000
(15:56 -0700)
src/compiler/base/utils.scm
patch
|
blob
|
history
diff --git
a/src/compiler/base/utils.scm
b/src/compiler/base/utils.scm
index 05ca39e142e8606fed383b83580c76c60d493a13..03a6a63f6132852aa5db8441f38d2c4c62b54ee4 100644
(file)
--- a/
src/compiler/base/utils.scm
+++ b/
src/compiler/base/utils.scm
@@
-31,6
+31,13
@@
USA.
\f
;;;; Miscellaneous
+;; Temporary definition, for 9.2 hosts.
+(define (random-bytevector n #!optional state)
+ (let ((env (->environment '(runtime random-number))))
+ ((if (environment-bound? env 'random-byte-vector)
+ (access random-byte-vector env)
+ (access random-bytevector env)) n state)))
+
(define (three-way-sort = set set* receiver)
(let ((member? (member-procedure =)))
(define (loop set set* receiver)