sS hMakeComputerID() { ret hjavascript([[ function makeComputerID() { var text = ""; var possible = "abcdefghijklmnopqrstuvwxyz"; for (var i = 0; i < 12; i++) text += possible.charAt(Math.floor(Math.random() * possible.length)); return text; } var computerID = localStorage.getItem('computer-id'); if (computerID == null || computerID.length != 12) { computerID = makeComputerID(); localStorage.setItem('computer-id', computerID); } ]]); }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018536 |
Snippet name: | hMakeComputerID |
Eternal ID of this version: | #1018536/2 |
Text MD5: | 481a20e99a08fd5a0b71f13d2fda3553 |
Author: | stefan |
Category: | javax / web |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-03 16:50:28 |
Source code size: | 504 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 363 / 412 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |