使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
etu
/
worst_captcha
关注
1
点赞
0
派生
0
代码
工单
0
合并请求
0
版本发布
0
百科
动态
浏览代码
Ignore first file (.keep)
master
Elis Axelsson
4 年前
父节点
0fa3a2c06c
当前提交
d6a84520f4
共有
1 个文件被更改
,包括
1 次插入
和
1 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+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
(
)
撰写
预览
正在加载...
取消
保存