it should be consistent across implementation. The rust implementation is here https://github.com/paritytech/substrate/blob/master/core/consensus/babe/src/lib.rs#L1022