Skip to content

Commit

Permalink
[runtime] Initial implementation of unique "build-time token" [#75]
Browse files Browse the repository at this point in the history
  • Loading branch information
cipriancraciun committed May 17, 2018
1 parent 3141f47 commit 8ac6598
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sources/runtime_configurations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,12 @@ pub const TRANSCRIPT_OUTPUT_SUPPORTS_ANSI_SEQUENCES_ALWAYS : bool = cfg! (featur
#[ cfg ( feature = "vonuvoli_transcript" ) ]
pub const TRANSCRIPT_BUFFER_SIZE : usize = 1 * 1024;




#[ cfg ( feature = "vonuvoli_release" ) ]
pub const BUILD_KEY : &'static [u8] = include_bytes! ("/proc/sys/kernel/random/uuid");

#[ cfg ( not ( feature = "vonuvoli_release" ) ) ]
pub const BUILD_KEY : &'static [u8] = include_bytes! ("/proc/sys/kernel/random/boot_id");

0 comments on commit 8ac6598

Please sign in to comment.