pike.git/
src/
builtin.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2016-01-18
2016-01-18 01:13:15 by Martin Nilsson <nilsson@fastmail.com>
1a7b7635e8bd4c628bf13ae0b9618ce053b96356 (
5
lines) (+
4
/-
1
)
[
Show
|
Annotate
]
Branch:
8.1
Keep random_string() as before. Typed as int len, but behave as int(0..) len.
2266:
PIKEFUN string(8bit) random_string(int len) {
-
if( len
<1
)
+
if( len
==0
)
RETURN empty_pike_string;
-
+
if( len<0 )
+
Pike_error("Bad argument 1 to random_string(). Expected int(0..).\n");
if( random_fd==-1 ) {