package schedule

import (
	"time"
)

const (
	COMMIT_MESSAGE_BASE = "commit_message_base.txt"
)

type Commit struct {
	dateTime time.Time
	message  string
}

package schedule

import (
	"time"
)

type Commit struct {
	dateTime time.Time
	message  string
}

// RandomCommits returns a channel of random commits for a given day.
func RandomCommits(day time.Time, rnd int) chan Commit {
	commitChannel := make(chan Commit)
	go func() {
		for i := 0; i < rnd; i++ {
			commitChannel <- Commit{
				dateTime: getRandomTime(), message: getRandomCommitMessage(),
			}
		}
		close(commitChannel)
	}()
	return commitChannel
}

func getRandomTime() time.Time {
	return time.Now()
}

func getRandomCommitMessage() string {
	return "not so random string"
}

--- 
+++ 
@@ -4,29 +4,11 @@
 	"time"
 )
 
+const (
+	COMMIT_MESSAGE_BASE = "commit_message_base.txt"
+)
+
 type Commit struct {
 	dateTime time.Time
 	message  string
 }
-
-// RandomCommits returns a channel of random commits for a given day.
-func RandomCommits(day time.Time, rnd int) chan Commit {
-	commitChannel := make(chan Commit)
-	go func() {
-		for i := 0; i < rnd; i++ {
-			commitChannel <- Commit{
-				dateTime: getRandomTime(), message: getRandomCommitMessage(),
-			}
-		}
-		close(commitChannel)
-	}()
-	return commitChannel
-}
-
-func getRandomTime() time.Time {
-	return time.Now()
-}
-
-func getRandomCommitMessage() string {
-	return "not so random string"
-}
Move random logic to random.go
