generate_snapshot_id

Function generate_snapshot_id 

Source
pub fn generate_snapshot_id() -> i64
Expand description

Generates a random snapshot ID using a cryptographically secure random number generator.

The function generates 8 random bytes and converts them to a positive i64 value. This ensures unique snapshot IDs across the table’s history.