)]}'
{"go/hummingbird/ring.go":[{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"4832a7c2e490957793e18b8a9965a29ad30dcf73","unresolved":false,"context_lines":[{"line_number":111,"context_line":"\t}"},{"line_number":112,"context_line":"\tfor i :\u003d range response {"},{"line_number":113,"context_line":"\t\tj :\u003d rand.Intn(i + 1)"},{"line_number":114,"context_line":"\t\tresponse[i], response[j] \u003d response[j], response[i]"},{"line_number":115,"context_line":"\t}"},{"line_number":116,"context_line":"\treturn response"},{"line_number":117,"context_line":"}"}],"source_content_type":"text/x-go","patch_set":1,"id":"1af94dfe_126427e2","line":114,"updated":"2016-03-17 08:25:43.000000000","message":"this is a good a way to shuffle as any I guess?  would rand.Perm work?","commit_id":"461f1343473c683a97798cfa90c017529d1f2905"},{"author":{"_account_id":2828,"name":"Michael Barton","email":"mike@weirdlooking.com","username":"redbo"},"change_message_id":"a85447b0a25683671af7b091dcb7f48fee47980d","unresolved":false,"context_lines":[{"line_number":111,"context_line":"\t}"},{"line_number":112,"context_line":"\tfor i :\u003d range response {"},{"line_number":113,"context_line":"\t\tj :\u003d rand.Intn(i + 1)"},{"line_number":114,"context_line":"\t\tresponse[i], response[j] \u003d response[j], response[i]"},{"line_number":115,"context_line":"\t}"},{"line_number":116,"context_line":"\treturn response"},{"line_number":117,"context_line":"}"}],"source_content_type":"text/x-go","patch_set":1,"id":"ba0121b8_a1d22f5a","line":114,"in_reply_to":"1af94dfe_126427e2","updated":"2016-03-30 23:48:30.000000000","message":"Using rand.Perm would mean allocating two more slices and probably wind up being more code.  This is Sattolo\u0027s algorithm, which is a perfectly fine shuffle.  This is one of the places Go\u0027s lack of generics pops up, since there can\u0027t be a generic shuffle function that hides it away.","commit_id":"461f1343473c683a97798cfa90c017529d1f2905"}]}
