diff options
Diffstat (limited to 'src/lib/libc/stdlib')
-rw-r--r-- | src/lib/libc/stdlib/rand.c | 6 | ||||
-rw-r--r-- | src/lib/libc/stdlib/random.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libc/stdlib/rand.c b/src/lib/libc/stdlib/rand.c index f4a8d20afa..97964f6ef9 100644 --- a/src/lib/libc/stdlib/rand.c +++ b/src/lib/libc/stdlib/rand.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rand.c,v 1.17 2016/10/22 19:19:34 tb Exp $ */ | 1 | /* $OpenBSD: rand.c,v 1.18 2017/11/28 06:55:49 tb Exp $ */ |
2 | /*- | 2 | /*- |
3 | * Copyright (c) 1990 The Regents of the University of California. | 3 | * Copyright (c) 1990 The Regents of the University of California. |
4 | * All rights reserved. | 4 | * All rights reserved. |
@@ -44,7 +44,7 @@ DEF_WEAK(rand_r); | |||
44 | 44 | ||
45 | #if defined(APIWARN) | 45 | #if defined(APIWARN) |
46 | __warn_references(rand_r, | 46 | __warn_references(rand_r, |
47 | "warning: rand_r() is not random, it is deterministic."); | 47 | "rand_r() is not random, it is deterministic."); |
48 | #endif | 48 | #endif |
49 | 49 | ||
50 | int | 50 | int |
@@ -57,7 +57,7 @@ rand(void) | |||
57 | 57 | ||
58 | #if defined(APIWARN) | 58 | #if defined(APIWARN) |
59 | __warn_references(rand, | 59 | __warn_references(rand, |
60 | "warning: rand() may return deterministic values, is that what you want?"); | 60 | "rand() may return deterministic values, is that what you want?"); |
61 | #endif | 61 | #endif |
62 | 62 | ||
63 | void | 63 | void |
diff --git a/src/lib/libc/stdlib/random.c b/src/lib/libc/stdlib/random.c index 41d5f64b58..62a0c24bdb 100644 --- a/src/lib/libc/stdlib/random.c +++ b/src/lib/libc/stdlib/random.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: random.c,v 1.30 2016/04/05 04:29:21 guenther Exp $ */ | 1 | /* $OpenBSD: random.c,v 1.31 2017/11/28 06:55:49 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 1983 Regents of the University of California. | 3 | * Copyright (c) 1983 Regents of the University of California. |
4 | * All rights reserved. | 4 | * All rights reserved. |
@@ -415,5 +415,5 @@ random(void) | |||
415 | 415 | ||
416 | #if defined(APIWARN) | 416 | #if defined(APIWARN) |
417 | __warn_references(random, | 417 | __warn_references(random, |
418 | "warning: random() may return deterministic values, is that what you want?"); | 418 | "random() may return deterministic values, is that what you want?"); |
419 | #endif | 419 | #endif |