mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
pledge genkeys
The simplest tool first: genkeys only does standard I/O, nothing else.
This commit is contained in:
parent
eef613993f
commit
2bc1c2d90f
3 changed files with 9 additions and 0 deletions
|
@ -18,6 +18,8 @@ import (
|
|||
"runtime"
|
||||
"time"
|
||||
|
||||
"suah.dev/protect"
|
||||
|
||||
"github.com/yggdrasil-network/yggdrasil-go/src/address"
|
||||
)
|
||||
|
||||
|
@ -27,6 +29,10 @@ type keySet struct {
|
|||
}
|
||||
|
||||
func main() {
|
||||
if err := protect.Pledge("stdio"); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
threads := runtime.GOMAXPROCS(0)
|
||||
fmt.Println("Threads:", threads)
|
||||
start := time.Now()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue