{"action":"created","issue":{"url":"https://api.github.com/repos/weimarnetz/weimarnetz/issues/111","labels_url":"https://api.github.com/repos/weimarnetz/weimarnetz/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/weimarnetz/weimarnetz/issues/111/comments","events_url":"https://api.github.com/repos/weimarnetz/weimarnetz/issues/111/events","html_url":"https://github.com/weimarnetz/weimarnetz/pull/111","id":105024192,"number":111,"title":"randomize vpn selection","user":{"login":"0x6d54","id":3529183,"avatar_url":"https://avatars.githubusercontent.com/u/3529183?v=3","gravatar_id":"","url":"https://api.github.com/users/0x6d54","html_url":"https://github.com/0x6d54","followers_url":"https://api.github.com/users/0x6d54/followers","following_url":"https://api.github.com/users/0x6d54/following{/other_user}","gists_url":"https://api.github.com/users/0x6d54/gists{/gist_id}","starred_url":"https://api.github.com/users/0x6d54/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0x6d54/subscriptions","organizations_url":"https://api.github.com/users/0x6d54/orgs","repos_url":"https://api.github.com/users/0x6d54/repos","events_url":"https://api.github.com/users/0x6d54/events{/privacy}","received_events_url":"https://api.github.com/users/0x6d54/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-05T12:34:09Z","updated_at":"2015-09-06T21:24:35Z","closed_at":"2015-09-05T12:44:34Z","pull_request":{"url":"https://api.github.com/repos/weimarnetz/weimarnetz/pulls/111","html_url":"https://github.com/weimarnetz/weimarnetz/pull/111","diff_url":"https://github.com/weimarnetz/weimarnetz/pull/111.diff","patch_url":"https://github.com/weimarnetz/weimarnetz/pull/111.patch"},"body":"requires \r\n\r\n`CONFIG_BUSYBOX_CONFIG_SHUF=y`"},"comment":{"url":"https://api.github.com/repos/weimarnetz/weimarnetz/issues/comments/138126722","html_url":"https://github.com/weimarnetz/weimarnetz/pull/111#issuecomment-138126722","issue_url":"https://api.github.com/repos/weimarnetz/weimarnetz/issues/111","id":138126722,"user":{"login":"glycoknob","id":187041,"avatar_url":"https://avatars.githubusercontent.com/u/187041?v=3","gravatar_id":"","url":"https://api.github.com/users/glycoknob","html_url":"https://github.com/glycoknob","followers_url":"https://api.github.com/users/glycoknob/followers","following_url":"https://api.github.com/users/glycoknob/following{/other_user}","gists_url":"https://api.github.com/users/glycoknob/gists{/gist_id}","starred_url":"https://api.github.com/users/glycoknob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glycoknob/subscriptions","organizations_url":"https://api.github.com/users/glycoknob/orgs","repos_url":"https://api.github.com/users/glycoknob/repos","events_url":"https://api.github.com/users/glycoknob/events{/privacy}","received_events_url":"https://api.github.com/users/glycoknob/received_events","type":"User","site_admin":false},"created_at":"2015-09-06T21:24:35Z","updated_at":"2015-09-06T21:24:35Z","body":"Naja, so schlimm ist es nicht denke ich:  `_list random_element` ist zwar nicht shuf - aber wenn es eh schon da ist... zudem ist die Lösung jetzt schon gut lesbar und macht was es soll auch ohne extra busybox option... Basti hat was in https://github.com/weimarnetz/weimarnetz/commit/5e1dd31e5c94ffae1bcaf6e0effaba71b1a80d3a dazu geschrieben...  \r\n\r\nFür zufällige Auswahl von einem VPN-Server passt das schon denke ich... \r\n\r\nAndererseits könnte man auch in Busybox `$RANDOM` und `shuf` ankreuzen und hier etwas Code sparen: https://github.com/weimarnetz/weimarnetz/blob/master/openwrt-addons/etc/kalua/math#L18 sowie hier: https://github.com/weimarnetz/weimarnetz/blob/master/openwrt-addons/etc/kalua/list#L51 \r\n\r\nAber letzlich läuft es so auf \"Stock-OpenWRT\" - ist vielleicht nice to have. Würd das eher unter: Geschmacksfrage einordnen. "}}