Set the Cyberdeck username
()
| 2876 | |
| 2877 | // Set the Cyberdeck username |
| 2878 | func newRPCUsername() (s string) { |
| 2879 | r, _ := rand.Int(rand.Reader, big.NewInt(1600)) |
| 2880 | w := mnemonics.Key_To_Words(r, "english") |
| 2881 | l := strings.Split(string(w), " ") |
| 2882 | s = l[len(l)-2] |
| 2883 | cyberdeck.RPC.user = s |
| 2884 | return |
| 2885 | } |
| 2886 | |
| 2887 | // Start an RPC server to allow decentralized application communication |
| 2888 | func toggleRPCServer(port string) { |
no outgoing calls
no test coverage detected