compiler:generate-lap-files?
(pathname-new-type output-pathname "lap")
(lambda (lap-output-port)
- (fluid-let ((*debugging-key*
- (random-byte-vector 32)))
+ (fluid-let ((*debugging-key* (random-bytevector 32)))
(compile-scode/file/hook
input-pathname
output-pathname
(define (make-nonce)
(if *disable-nonces?*
"nonce"
- (vector-8b->hexadecimal (random-byte-vector 8))))
+ (bytevector->hexadecimal (random-bytevector 8))))
\f
(define (top-level/stackify handle ntags code-fn
decl-code-name code-name code-blocks
(define (declare-dynamic-initialization handle)
(c:line (c:call "DECLARE_DYNAMIC_INITIALIZATION"
(c:string handle)
- (c:string (vector-8b->hexadecimal (random-byte-vector 8))))))
+ (c:string (bytevector->hexadecimal (random-bytevector 8))))))
(define (declare-dynamic-object-initialization handle)
(c:line (c:call "DECLARE_DYNAMIC_OBJECT_INITIALIZATION"
(c:string handle)
- (c:string (vector-8b->hexadecimal (random-byte-vector 8))))))
+ (c:string (bytevector->hexadecimal (random-bytevector 8))))))
(define (declare-subcodes decl-name blocks)
(if (and (pair? blocks)
(fluid-let ((*compiler-file-handle*
(string-append
"(anonymous scode "
- (vector-8b->hexadecimal (random-byte-vector 8))
+ (bytevector->hexadecimal (random-bytevector 8))
")")))
(action)))
(let ((typifier
;; Guarantee unique temporary files for liarc. We could
;; instead change how the files are loaded.
- (let ((suffix (vector-8b->hexadecimal (random-byte-vector #x10))))
+ (let ((suffix (bytevector->hexadecimal (random-bytevector #x10))))
(lambda (type)
(lambda (pathname)
(pathname-new-type
(vector-ref v index)))))
(define (dbg-info-key? object)
- (and (string? object)
- (fix:= (string-length object) 32)))
+ (or (and (bytevector? object)
+ (fix:= (bytevector-length object) 32))
+ (and (legacy-string? object)
+ (fix:= (legacy-string-length object) 32))))
(define (dbg-info-key=? a b)
- (string=? a b))
+ (equal? a b))
(define (debug-info-pathname? object)
(or (pathname? object)
1.)
flimit.))
-(define (random-byte-vector n #!optional state)
- (let ((state (get-random-state state 'RANDOM-BYTE-VECTOR))
- (s (make-vector-8b n)))
- (do ((i 0 (fix:+ i 1)))
- ((fix:= i n))
- (vector-8b-set! s i (small-random-integer 256 state)))
- s))
-
(define (random-bytevector n #!optional state)
(let ((state (get-random-state state 'random-bytevector))
(bytes (make-bytevector n)))
make-random-source
make-random-state
random
- random-byte-vector
random-bytevector
random-integer
random-real