Different Type of Static Variable

struct Foo {
  int Add(int x) {
    static int a = rand() % 5;
    return a += x;
  }
};
^ This is Faster?
struct Foo {
  static inline int a = rand() % 5;

  int Add(int x) {
    return a += x;
  }
};
^ This is Faster?

* The benchmark is run under AMD Ryzen 9.

* For the full benchmark code, please refer here.

* For illustration purposes only, see FAQ for more details.