File tree 2 files changed +1
-11
lines changed
2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change 73
73
return messages, nil
74
74
}</ ins >
75
75
76
- // Init sets initial values for variables used in the function.
77
- func init() {
78
- rand.Seed(time.Now().UnixNano())
79
- }
80
-
81
76
// randomFormat returns one of a set of greeting messages. The returned
82
77
// message is selected at random.
83
78
func randomFormat() string {
Original file line number Diff line number Diff line change 51
51
return message, nil
52
52
}
53
53
54
- < ins > // init sets initial values for variables used in the function.
55
- func init() {
56
- rand.Seed(time.Now().UnixNano())
57
- }
58
-
59
- // randomFormat returns one of a set of greeting messages. The returned
54
+ < ins > // randomFormat returns one of a set of greeting messages. The returned
60
55
// message is selected at random.
61
56
func randomFormat() string {
62
57
// A slice of message formats.
You can’t perform that action at this time.
0 commit comments