Skip to content

Commit 0c24f4a

Browse files
committed
fix bad file descriptor on macos
1 parent 8000d05 commit 0c24f4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func writeFinalMessage(pair *keypair.Full, index int64, u string) {
130130
fmt.Printf("\nSearch successful! Results:\n\nAddress: %s%s%s\nSeed:\t %s\n", c[0], aurora.Green(u), c[1], pair.Seed())
131131

132132
if writeToFile == true {
133-
f, err := os.OpenFile("result.txt", os.O_CREATE, 0666)
133+
f, err := os.OpenFile("result.txt", os.O_CREATE|os.O_WRONLY, 0666)
134134
if err != nil {
135135
log.Fatalf("error opening file: %v", err)
136136
}

0 commit comments

Comments
 (0)