mirror of
https://github.com/jimeh/rands.git
synced 2026-02-19 03:16:39 +00:00
feat(rands): initial implementation
This commit is contained in:
12
bytes_example_test.go
Normal file
12
bytes_example_test.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package rands_test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/jimeh/rands"
|
||||
)
|
||||
|
||||
func ExampleBytes() {
|
||||
b, _ := rands.Bytes(8)
|
||||
fmt.Printf("%+v\n", b) // => [0 220 137 243 135 204 34 63]
|
||||
}
|
||||
Reference in New Issue
Block a user