Add temporary hash function.

This commit is contained in:
Michael Mikovsky
2026-05-29 11:38:14 -06:00
parent fc82f4f921
commit ca1daedebe
4 changed files with 86 additions and 2 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
/// Leaf id used by the generated fake PTY wrapper.
pub const LEAF_FAKE_PTY: u32 = 300;
pub const LEAF_FAKE_PTY: u32 = unshell::hash("dev.unshell.v1.pty");
/// Outer procedure id used by all fake PTY session packets.
pub const PROC_PTY: u32 = 30;
pub const PROC_PTY: u32 = unshell::hash("dev.unshell.v1.pty.pty");
/// Downward opcode that opens one PTY session.
pub const OP_OPEN: u8 = 0;