khan: don't reset tic

instead make it a rolling 128-bit integer. 128 bits is the same size as
the +sham space, so is one natural choice for "big enough to never have
to think about this." 64, 32, 16, even 8 bits would probably be fine.
This commit is contained in:
Jōshin 2022-03-02 17:28:10 -06:00
parent 18274090b2
commit 0b507cf498
No known key found for this signature in database
GPG Key ID: A8BE5A9A521639D0

View File

@ -116,7 +116,6 @@
=* state -
|= [now=@da eny=@uvJ rof=roof]
=* khan-gate .
=. tic 0
^?
|%
:: +call: handle a +task request
@ -140,7 +139,7 @@
%^ cat 3
'khan-fyrd--'
(scot %uv (sham (mix tic eny)))
=. tic +(tic)
=. tic (mod +(tic) (bex 128))
=* fyd p.task
=/ =beak (get-beak bear.fyd now)
=/ args [~ `tid beak name.fyd q.args.fyd]