diff options
Diffstat (limited to 'cmd/hsu/hst.go')
| -rw-r--r-- | cmd/hsu/hst.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cmd/hsu/hst.go b/cmd/hsu/hst.go new file mode 100644 index 00000000..d7ffb89a --- /dev/null +++ b/cmd/hsu/hst.go @@ -0,0 +1,16 @@ +package main + +/* copied from hst and must never be changed */ + +const ( + userOffset = 100000 + rangeSize = userOffset / 10 + + identityStart = 0 + identityEnd = appEnd - appStart + + appStart = rangeSize * 1 + appEnd = appStart + rangeSize - 1 +) + +func toUser(userid, appid uint32) uint32 { return userid*userOffset + appStart + appid } |
