package main

/* keep in sync with hst */

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 }
