Added 'windows' feature to clog-connection to make it buildable on Windows using Clozure CL

This commit is contained in:
em7 2024-03-07 10:20:48 +01:00
parent 9f360254a3
commit 03ca2a96fb

View file

@ -90,7 +90,7 @@ script."
(defvar *new-id* '(0) "Last issued connection or script IDs")
#-(or mswindows win32 cormanlisp) ; isaac hasn't supported these platforms
#-(or mswindows windows win32 cormanlisp) ; isaac hasn't supported these platforms
(defparameter *isaac-ctx*
(isaac:init-self-seed :count 5
:is64 #+:X86-64 t #-:X86-64 nil)
@ -133,10 +133,10 @@ script."
(defun random-hex-string ()
"Generate cryptographic grade random ids for use in connections."
#+(or mswindows win32 cormanlisp) ; isaac hasn't supported these platforms. Use ironclad instead.
#+(or mswindows windows win32 cormanlisp) ; isaac hasn't supported these platforms. Use ironclad instead.
(ironclad:byte-array-to-hex-string
(ironclad:random-data 16))
#-(or mswindows win32 cormanlisp) ; isaac hasn't supported these platforms
#-(or mswindows windows win32 cormanlisp) ; isaac hasn't supported these platforms
(format nil "~(~32,'0x~)" (#+:X86-64 isaac:rand-bits-64
#-:X86-64 isaac:rand-bits
*isaac-ctx* 128)))