diff options
author | Ben Pfaff <blp@nicira.com> | 2012-01-17 16:38:23 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2012-02-01 14:15:07 -0800 |
commit | ddc4f8e27f231b35df0c73a16bacc17396fb00f3 (patch) | |
tree | 08635f9d45d2c999b284cff40d98541a56d9ac8f /lib/random.h | |
parent | a39edbd4a409ad14b79c2205e340c07185785b92 (diff) | |
download | openvswitch-ddc4f8e27f231b35df0c73a16bacc17396fb00f3.tar.gz |
util: Move bitwise_copy() here, add new bitwise functions, add a test.
bitwise_copy() is generally useful so make it a general utility function.
Also add a comment.
Upcoming commits will introduce users for the new functions.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/random.h')
-rw-r--r-- | lib/random.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/random.h b/lib/random.h index c69863859..5bb041e5e 100644 --- a/lib/random.h +++ b/lib/random.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009, 2010 Nicira Networks. + * Copyright (c) 2008, 2009, 2010, 2012 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,6 +27,7 @@ void random_bytes(void *, size_t); uint8_t random_uint8(void); uint16_t random_uint16(void); uint32_t random_uint32(void); +uint64_t random_uint64(void); int random_range(int max); #endif /* random.h */ |