random-256 -> 256 random-bits
parent
9c74ba2f2f
commit
cd4f2028cd
|
@ -14,7 +14,7 @@ IN: channels.remote
|
||||||
PRIVATE>
|
PRIVATE>
|
||||||
|
|
||||||
: publish ( channel -- id )
|
: publish ( channel -- id )
|
||||||
random-256 dup >r remote-channels set-at r> ;
|
256 random-bits dup >r remote-channels set-at r> ;
|
||||||
|
|
||||||
: get-channel ( id -- channel )
|
: get-channel ( id -- channel )
|
||||||
remote-channels at ;
|
remote-channels at ;
|
||||||
|
|
|
@ -40,7 +40,7 @@ M: thread send ( message thread -- )
|
||||||
TUPLE: synchronous data sender tag ;
|
TUPLE: synchronous data sender tag ;
|
||||||
|
|
||||||
: <synchronous> ( data -- sync )
|
: <synchronous> ( data -- sync )
|
||||||
self random-256 synchronous construct-boa ;
|
self 256 random-bits synchronous construct-boa ;
|
||||||
|
|
||||||
TUPLE: reply data tag ;
|
TUPLE: reply data tag ;
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ GENERIC: new-user ( user provider -- user/f )
|
||||||
user email>> length 0 > [
|
user email>> length 0 > [
|
||||||
user email>> email = [
|
user email>> email = [
|
||||||
user
|
user
|
||||||
random-256 >hex >>ticket
|
256 random-bits >hex >>ticket
|
||||||
dup provider update-user
|
dup provider update-user
|
||||||
] [ f ] if
|
] [ f ] if
|
||||||
] [ f ] if
|
] [ f ] if
|
||||||
|
|
Loading…
Reference in New Issue