Skip to content

Commit e03ce65

Browse files
committed
[libc++][NFC] Reformatting in random_device.h and random.cpp
1 parent 9c49f8d commit e03ce65

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

libcxx/include/__random/random_device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class _LIBCPP_TYPE_VIS random_device
2727
{
2828
#ifdef _LIBCPP_USING_DEV_RANDOM
2929
int __f_;
30-
#endif // defined(_LIBCPP_USING_DEV_RANDOM)
30+
#endif
3131
public:
3232
// types
3333
typedef unsigned result_type;

libcxx/src/random.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,33 @@
99
#include <__config>
1010

1111
#if defined(_LIBCPP_USING_WIN32_RANDOM)
12-
// Must be defined before including stdlib.h to enable rand_s().
13-
#define _CRT_RAND_S
12+
// Must be defined before including stdlib.h to enable rand_s().
13+
# define _CRT_RAND_S
1414
#endif // defined(_LIBCPP_USING_WIN32_RANDOM)
1515

1616
#include "limits"
1717
#include "random"
1818
#include "system_error"
1919

2020
#if defined(__sun__)
21-
#define rename solaris_headers_are_broken
21+
# define rename solaris_headers_are_broken
2222
#endif // defined(__sun__)
2323

2424
#include <errno.h>
2525
#include <stdio.h>
2626
#include <stdlib.h>
2727

2828
#if defined(_LIBCPP_USING_GETENTROPY)
29-
#include <sys/random.h>
29+
# include <sys/random.h>
3030
#elif defined(_LIBCPP_USING_DEV_RANDOM)
31-
#include <fcntl.h>
32-
#include <unistd.h>
33-
#if __has_include(<sys/ioctl.h>) && __has_include(<linux/random.h>)
34-
#include <sys/ioctl.h>
35-
#include <linux/random.h>
36-
#endif
31+
# include <fcntl.h>
32+
# include <unistd.h>
33+
# if __has_include(<sys/ioctl.h>) && __has_include(<linux/random.h>)
34+
# include <sys/ioctl.h>
35+
# include <linux/random.h>
36+
# endif
3737
#elif defined(_LIBCPP_USING_NACL_RANDOM)
38-
#include <nacl/nacl_random.h>
38+
# include <nacl/nacl_random.h>
3939
#endif
4040

4141

0 commit comments

Comments
 (0)