mirror of https://github.com/cbeuw/Cloak
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
196 B
Go
18 lines
196 B
Go
4 years ago
|
package common
|
||
|
|
||
|
import (
|
||
|
"crypto/rand"
|
||
|
"io"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
var RealWorldState = WorldState{
|
||
|
Rand: rand.Reader,
|
||
|
Now: time.Now,
|
||
|
}
|
||
|
|
||
|
type WorldState struct {
|
||
|
Rand io.Reader
|
||
|
Now func() time.Time
|
||
|
}
|