summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/rand.c
diff options
context:
space:
mode:
authortb <>2017-11-28 06:55:49 +0000
committertb <>2017-11-28 06:55:49 +0000
commit2123407555a8a039a48a3bbe8fa9edbe43401803 (patch)
tree896abe9085168c02455508c6273605b4ac8a6e3c /src/lib/libc/stdlib/rand.c
parent39d54f53c5193a75023fc870449caf64192e3183 (diff)
downloadopenbsd-2123407555a8a039a48a3bbe8fa9edbe43401803.tar.gz
openbsd-2123407555a8a039a48a3bbe8fa9edbe43401803.tar.bz2
openbsd-2123407555a8a039a48a3bbe8fa9edbe43401803.zip
GNU ld has prefixed the contents of .gnu.warning.SYMBOL sections
with "warning: " since 2003, so the messages themselves need not contain the prefix anymore. From Scott Cheloha ok jca, deraadt
Diffstat (limited to 'src/lib/libc/stdlib/rand.c')
-rw-r--r--src/lib/libc/stdlib/rand.c6
1 files changed, 3 insertions, 3 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
50int 50int
@@ -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
63void 63void