Use simplified Snowflake ID generation

This prevents leaking server information to client with little effort.
This commit is contained in:
oxalica 2024-09-06 01:51:27 -04:00
parent 59d51937da
commit a7f260027d
5 changed files with 36 additions and 12 deletions

View file

@ -10,7 +10,7 @@ static INIT_SQL: &str = include_str!("../schema.sql");
// Simple and stupid version check for now.
// `echo -n 'blahd-database-0' | sha256sum | head -c5` || version
const APPLICATION_ID: i32 = 0xd9e_8401;
const APPLICATION_ID: i32 = 0xd9e_8402;
#[derive(Debug)]
pub struct Database {