mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 17:22:27 +08:00
26 lines
528 B
Go
26 lines
528 B
Go
package random
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestKey(t *testing.T) {
|
|
dispatchEc2b := NewEc2b()
|
|
dispatchEc2bData := dispatchEc2b.Bytes()
|
|
dispatchEc2bSeed := dispatchEc2b.Seed()
|
|
_ = dispatchEc2bData
|
|
|
|
dispatchXorKey := dispatchEc2b.XorKey()
|
|
|
|
gateDispatchEc2b := NewEc2b()
|
|
gateDispatchEc2b.SetSeed(dispatchEc2bSeed)
|
|
|
|
gateDispatchXorKey := gateDispatchEc2b.XorKey()
|
|
|
|
keyBlock := NewKeyBlock(uint64(11468049314633205968))
|
|
gateXorKey := keyBlock.XorKey()
|
|
|
|
fmt.Println(dispatchXorKey, gateDispatchXorKey, gateXorKey)
|
|
}
|