This website works better with JavaScript.
首頁
探索
說明
登入
etu
/
worst_captcha
關註
1
收藏
0
複製
0
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
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…
取消
儲存