diff --git a/extra/zeromq/examples/wuserver.factor b/extra/zeromq/examples/wuserver.factor index 28feb95c38..5d18b06b23 100644 --- a/extra/zeromq/examples/wuserver.factor +++ b/extra/zeromq/examples/wuserver.factor @@ -10,16 +10,18 @@ IN: zeromq.examples.wuserver ZMQ_PUB &dispose dup "tcp://*:5556" zmq-bind dup "ipc://weather.ipc" zmq-bind - random-generator get now timestamp>unix-time >fixnum seed-random [ - [ t ] [ - dup - 100000 random - 215 random 80 - - 50 random 10 + - "%05d %d %d" sprintf - >byte-array 0 zmq-send - ] while - ] with-random drop + + [ + dup + 100000 random + 215 random 80 - + 50 random 10 + + "%05d %d %d" sprintf + >byte-array 0 zmq-send + t + ] loop + + drop ] with-destructors ; MAIN: wuserver