This website works better with JavaScript.
Почетна
Преглед
Помоћ
Пријавите Се
etu
/
worst_captcha
Прати
1
Волим
0
Креирај огранак
0
Код
Дискусије
0
Захтеви за спајање
0
Издања
0
Вики
Activity
Преглед изворни кода
Ignore first file (.keep)
master
Elis Axelsson
пре 4 година
родитељ
0fa3a2c06c
комит
d6a84520f4
1 измењених фајлова
са
1 додато
и
1 уклоњено
Подељен поглед
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/WorstCaptcha/GetWord.go
+ 1
- 1
src/WorstCaptcha/GetWord.go
Прегледај датотеку
@ -1,7 +1,6 @@
package
WorstCaptcha
import
(
"fmt"
"io/ioutil"
"os"
"math/rand"
@ -12,6 +11,7 @@ func GetRandomWord() string {
dir
,
_
:=
os
.
Getwd
(
)
files
,
_
:=
ioutil
.
ReadDir
(
dir
+
"/images/"
)
files
=
files
[
1
:
]
file
:=
files
[
rand
.
Intn
(
len
(
files
)
)
]
.
Name
(
)
Write
Preview
Loading…
Откажи
Сачувај