Skip to content

Commit 8615da8

Browse files
committed
lua doc
1 parent 401e151 commit 8615da8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,4 +174,13 @@
174174
<code>
175175
local request_time = ngx.now() - ngx.req.start_time()
176176
</code>
177+
</pre>
178+
- lua随机数
179+
<pre>
180+
<code>
181+
local resty_random = require "resty.random"
182+
local str = require "resty.string"
183+
local random = resty_random.bytes(10)
184+
local test = str.to_hex(random)
185+
</code>
177186
</pre>

0 commit comments

Comments
 (0)