Remove use of 'rot' in uuid.
parent
2d08bba67f
commit
293cbf91e7
|
@ -51,10 +51,10 @@ IN: uuid
|
||||||
[ CHAR: - = not ] filter 16 base> ;
|
[ CHAR: - = not ] filter 16 base> ;
|
||||||
|
|
||||||
: uuid>byte-array ( n -- byte-array )
|
: uuid>byte-array ( n -- byte-array )
|
||||||
16 <byte-array> swap 15 -1 [a,b) [
|
16 <byte-array> 15 -1 [a,b) [
|
||||||
rot [ dup HEX: ff bitand ] 2dip
|
[ dup HEX: ff bitand ] 2dip swap
|
||||||
[ set-nth ] keep swap -8 shift
|
[ set-nth -8 shift ] keep
|
||||||
] each drop ;
|
] each nip ;
|
||||||
|
|
||||||
: byte-array>uuid ( byte-array -- n )
|
: byte-array>uuid ( byte-array -- n )
|
||||||
0 swap [ [ 8 shift ] dip + ] each ;
|
0 swap [ [ 8 shift ] dip + ] each ;
|
||||||
|
|
Loading…
Reference in New Issue