Generate qr code and random links at server side