summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/stdlib/random.c')
-rw-r--r--src/lib/libc/stdlib/random.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libc/stdlib/random.c b/src/lib/libc/stdlib/random.c
index cba088c751..375bfbd0e6 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.25 2014/12/08 21:45:20 deraadt Exp $ */ 1/* $OpenBSD: random.c,v 1.26 2014/12/09 08:00:53 deraadt 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,3 +415,8 @@ random(void)
415 UNLOCK(); 415 UNLOCK();
416 return r; 416 return r;
417} 417}
418
419#if defined(APIWARN)
420__warn_references(rand,
421 "warning: random() may return determinstic values, is that what you want?");
422#endif