From 794fd1868850e47faca2137a52a7f17b4f9fdf36 Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Tue, 9 Jun 2020 11:27:08 +0200 Subject: [PATCH] Random: Old pseudo-random implementation moved to random-legacy.c --- ucw/Makefile | 3 ++- ucw/lib.h | 2 +- ucw/{random.c => random-legacy.c} | 0 3 files changed, 3 insertions(+), 2 deletions(-) rename ucw/{random.c => random-legacy.c} (100%) diff --git a/ucw/Makefile b/ucw/Makefile index dfdc9fbe..b9bff392 100644 --- a/ucw/Makefile +++ b/ucw/Makefile @@ -21,7 +21,8 @@ LIBUCW_MODS= \ fw-hex \ char-cat char-upper char-lower unicode varint stkstring \ wildmatch regex \ - prime primetable random \ + prime primetable \ + random-legacy \ time-stamp time-timer time-conf \ bit-ffs bit-fls bit-array \ url \ diff --git a/ucw/lib.h b/ucw/lib.h index 0465ca1e..6f93bb7e 100644 --- a/ucw/lib.h +++ b/ucw/lib.h @@ -232,7 +232,7 @@ void *big_alloc(u64 len) LIKE_MALLOC; /** Allocate a large memory block in the void *big_alloc_zero(u64 len) LIKE_MALLOC; /** Allocate and clear a large memory block. **/ void big_free(void *start, u64 len); /** Free block allocated by @big_alloc() or @big_alloc_zero(). **/ -/*** === Random numbers (random.c) ***/ +/*** === Random numbers (random-legacy.c) ***/ uint random_u32(void); /** Return a pseudorandom 32-bit number. **/ uint random_max(uint max); /** Return a pseudorandom 32-bit number in range [0,@max). **/ diff --git a/ucw/random.c b/ucw/random-legacy.c similarity index 100% rename from ucw/random.c rename to ucw/random-legacy.c -- 2.39.2