Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local m = peripheral.wrap("back")
- m.open(62132)
- os.loadAPI("memes")
- local expectedReplyReturn
- local expectedReply
- while true do
- local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEventRaw("modem_message")
- local rand = replyChannel
- math.randomseed(message:gsub('%D','')+rand)
- expectedReplyReturn = rand + tonumber(message:gsub('%D',''):sub(1,4))
- math.randomseed(message:gsub('%D','')+rand+os.day())
- expectedReply = memes.binary(memes.sha1(tostring(math.random(1,math.random(math.random(1,10000),100000000000000000)))))
- m.transmit(65351, expectedReplyReturn, expectedReply)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement