diff options
Diffstat (limited to 'src/unstable')
| -rw-r--r-- | src/unstable/uuid.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unstable/uuid.cpp b/src/unstable/uuid.cpp index 4ac90a5..c76bb15 100644 --- a/src/unstable/uuid.cpp +++ b/src/unstable/uuid.cpp | |||
| @@ -82,14 +82,14 @@ void Bu::Uuid::clear() | |||
| 82 | 82 | ||
| 83 | Bu::Uuid Bu::Uuid::gen() | 83 | Bu::Uuid Bu::Uuid::gen() |
| 84 | { | 84 | { |
| 85 | #ifdef linux | 85 | #if defined(linux) |
| 86 | Bu::File fIn( "/proc/sys/kernel/random/uuid", Bu::File::Read ); | 86 | Bu::File fIn( "/proc/sys/kernel/random/uuid", Bu::File::Read ); |
| 87 | char dat[36]; | 87 | char dat[36]; |
| 88 | fIn.read( dat, 36 ); | 88 | fIn.read( dat, 36 ); |
| 89 | Uuid id; | 89 | Uuid id; |
| 90 | id.set( dat ); | 90 | id.set( dat ); |
| 91 | return id; | 91 | return id; |
| 92 | #elif WIN32 | 92 | #elif defined(WIN32) |
| 93 | UUID uuid; | 93 | UUID uuid; |
| 94 | UuidCreate( &uuid ); | 94 | UuidCreate( &uuid ); |
| 95 | Uuid id; | 95 | Uuid id; |
